Project

General

Profile

Bug #17877 ยป 20080215_listmodule_fieldlist.patch

Administrator Admin, 2008-02-15 21:03

View differences:

typo3/class.db_list.inc (working copy)
var $calcPerms=0; // Some permissions...
var $clickTitleMode = ''; // Mode for what happens when a user clicks the title of a record.
var $modSharedTSconfig = array(); // Shared module configuration, used by localization features
var $tceformTSconfig = array(); // cached TCEFORM TSconfig configuration, used by the field list
var $pageRecord = array(); // Loaded with page record with version overlay if any.
var $hideTables = ''; // Tables which should not get listed
var $tableTSconfigOverTCA = array(); //TSconfig which overwrites TCA-Settings
......
if (is_array($TCA[$table])) {
t3lib_div::loadTCA($table);
// take TSconfig into account
if (!count($this->tceformTSconfig)) {
$TSconfig = t3lib_BEfunc::getPagesTSconfig($this->id);
if (is_array($TSconfig['TCEFORM.'])) {
$this->tceformTSconfig = $TSconfig['TCEFORM.'];
} else {
$this->tceformTSconfig[$table.'.'] = array();
}
}
// Traverse configured columns and add them to field array, if available for user.
foreach($TCA[$table]['columns'] as $fN => $fieldValue) {
foreach ($TCA[$table]['columns'] as $fN => $fieldValue) {
if ($dontCheckUser ||
((!$fieldValue['exclude'] || $BE_USER->check('non_exclude_fields',$table.':'.$fN)) && $fieldValue['config']['type']!='passthrough')) {
$fieldListArr[]=$fN;
((!$fieldValue['exclude'] || $BE_USER->check('non_exclude_fields', $table.':'.$fN)) // excluded from user
&& $fieldValue['config']['type'] != 'passthrough' // TCA type passthrough
&& !(is_array($this->tceformTSconfig[$table.'.']) && is_array($this->tceformTSconfig[$table.'.'][$fN.'.']) && $this->tceformTSconfig[$table.'.'][$fN.'.']['disabled'])) // pagesTSconfig TCEFORM.table.field.disabled = 1
) {
$fieldListArr[] = $fN;
}
}
......
if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['typo3/class.db_list.inc']) {
include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['typo3/class.db_list.inc']);
}
?>
?>
    (1-1/1)