X-Git-Url: http://git.typo3.org/Packages/TYPO3.CMS.git/blobdiff_plain/389021faac378a3db8e675205fc6767a66733f3b..7f0bd2aef987af5d3164ddd8694d63760329f53c:/typo3/sysext/recordlist/Classes/RecordList/DatabaseRecordList.php diff --git a/typo3/sysext/recordlist/Classes/RecordList/DatabaseRecordList.php b/typo3/sysext/recordlist/Classes/RecordList/DatabaseRecordList.php index 5dccd9a9c804..3de19b9c8f63 100644 --- a/typo3/sysext/recordlist/Classes/RecordList/DatabaseRecordList.php +++ b/typo3/sysext/recordlist/Classes/RecordList/DatabaseRecordList.php @@ -1957,7 +1957,13 @@ class DatabaseRecordList extends AbstractDatabaseRecordList // Create a checkbox for each field: $checkboxes = []; $checkAllChecked = true; + $tsConfig = BackendUtility::getPagesTSconfig($this->id); + $tsConfigOfTable = is_array($tsConfig['TCEFORM.'][$table . '.']) ? $tsConfig['TCEFORM.'][$table . '.'] : null; foreach ($fields as $fieldName) { + // Hide field if hidden + if ($tsConfigOfTable && is_array($tsConfigOfTable[$fieldName . '.']) && isset($tsConfigOfTable[$fieldName . '.']['disabled']) && (int)$tsConfigOfTable[$fieldName . '.']['disabled'] === 1) { + continue; + } // Determine, if checkbox should be checked if (in_array($fieldName, $setFields, true) || $fieldName === $this->fieldArray[0]) { $checked = ' checked="checked"';