[FOLLOWUP][BUGFIX] Do not override hidden UC fields in user settings 01/50101/3
authorMarkus Klein <markus.klein@typo3.org>
Fri, 7 Oct 2016 09:56:36 +0000 (11:56 +0200)
committerBenni Mack <benni@typo3.org>
Mon, 10 Oct 2016 19:38:35 +0000 (21:38 +0200)
Check if there is actually a user TSconfig available before using it.

Resolves: #77263
Releases: master, 7.6
Change-Id: Iafc58866325f000077f46f9e77fafb3c80069fe6
Reviewed-on: https://review.typo3.org/50101
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
typo3/sysext/setup/Classes/Controller/SetupModuleController.php

index 45967a6..c5cd689 100644 (file)
@@ -876,6 +876,9 @@ class SetupModuleController extends AbstractModule
     protected function getFieldsFromShowItem()
     {
         $allowedFields = GeneralUtility::trimExplode(',', $GLOBALS['TYPO3_USER_SETTINGS']['showitem'], true);
+        if (!is_array($this->tsFieldConf)) {
+            return $allowedFields;
+        }
         foreach ($this->tsFieldConf as $fieldName => $userTsFieldConfig) {
             if (!empty($userTsFieldConfig['disabled'])) {
                 $fieldName = rtrim($fieldName, '.');