summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
9d408ff)
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
// Gets the list of fields to copy from the previous record.
$fArr = GeneralUtility::trimExplode(',', $GLOBALS['TCA'][$table]['ctrl']['useColumnsForDefaultValues'], 1);
foreach ($fArr as $theF) {
// 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];
}
}
$newRow[$theF] = $row[$theF];
}
}