Commit 47fa45cf authored by Georg Ringer's avatar Georg Ringer Committed by Stefan Bürk
Browse files

[BUGFIX] Use correct check for disabled field in DataHandler

Instead of checking for the array key `enablecolumns` the check must be
done on the field `disabled` itself.

Resolves: #97728
Releases: main, 11.5
Change-Id: I411b37d4d63eb1ad52592cd887a95c2552ab7bfa
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/74810


Tested-by: core-ci's avatarcore-ci <typo3@b13.com>
Tested-by: Simon Schaufelberger's avatarSimon Schaufelberger <simonschaufi+typo3@gmail.com>
Tested-by: Oliver Bartsch's avatarOliver Bartsch <bo@cedev.de>
Tested-by: Stefan Bürk's avatarStefan Bürk <stefan@buerk.tech>
Reviewed-by: Simon Schaufelberger's avatarSimon Schaufelberger <simonschaufi+typo3@gmail.com>
Reviewed-by: Oliver Bartsch's avatarOliver Bartsch <bo@cedev.de>
Reviewed-by: Stefan Bürk's avatarStefan Bürk <stefan@buerk.tech>
parent 24c5372a
......@@ -3440,7 +3440,7 @@ class DataHandler implements LoggerAwareInterface
// Initializing:
$theNewID = StringUtility::getUniqueId('NEW');
$enableField = isset($GLOBALS['TCA'][$table]['ctrl']['enablecolumns']) ? $GLOBALS['TCA'][$table]['ctrl']['enablecolumns']['disabled'] : '';
$enableField = $GLOBALS['TCA'][$table]['ctrl']['enablecolumns']['disabled'] ?? '';
$headerField = $GLOBALS['TCA'][$table]['ctrl']['label'];
// Getting "copy-after" fields if applicable:
$copyAfterFields = $destPid < 0 ? $this->fixCopyAfterDuplFields($table, $uid, abs($destPid), false) : [];
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment