From: Wouter Wolters Date: Sat, 18 May 2013 15:45:17 +0000 (+0200) Subject: [BUGFIX] Some TCAdefaults work only with "Page (inside)" X-Git-Tag: TYPO3_6-2-0alpha1~26 X-Git-Url: http://git.typo3.org/Packages/TYPO3.CMS.git/commitdiff_plain/c4d4648766b9b7e94f3f39a3e32f11dcb6d295c0?hp=9d408ffbae78327dd1d8b52c4a3ea75c145c8724 [BUGFIX] Some TCAdefaults work only with "Page (inside)" Some TCAdefaults work only with "Page (inside)" and not in the wizard. Affected defaults: * TCAdefaults.pages.hidden = 1 * TCAdefaults.pages.doktype = 2 Change-Id: I71eb301909c31eb8cd160dbe6beadc4ba5102b66 Resolves: #14955 Releases: 6.2, 6.1, 6.0, 4.7, 4.5 Reviewed-on: https://review.typo3.org/20900 Reviewed-by: Philipp Gampe Tested-by: Philipp Gampe Reviewed-by: Wouter Wolters Tested-by: Wouter Wolters --- diff --git a/typo3/sysext/backend/Classes/Form/DataPreprocessor.php b/typo3/sysext/backend/Classes/Form/DataPreprocessor.php index 1a2021b168f1..7ff58e9e0efa 100644 --- a/typo3/sysext/backend/Classes/Form/DataPreprocessor.php +++ b/typo3/sysext/backend/Classes/Form/DataPreprocessor.php @@ -169,7 +169,7 @@ class DataPreprocessor { // Gets the list of fields to copy from the previous record. $fArr = GeneralUtility::trimExplode(',', $GLOBALS['TCA'][$table]['ctrl']['useColumnsForDefaultValues'], 1); foreach ($fArr as $theF) { - if (isset($GLOBALS['TCA'][$table]['columns'][$theF])) { + if (isset($GLOBALS['TCA'][$table]['columns'][$theF]) && !isset($newRow[$theF])) { $newRow[$theF] = $row[$theF]; } }