Breaking: #87989 - TCA option setToDefaultOnCopy removed¶
See Issue #87989
The special TCA option
$TCA[$tableName]['ctrl']['setToDefaultOnCopy'] is removed.
It allowed to reset a certain field to its default value when copying a record.
Having the setting set in TCA will trigger a PHP
E_USER_DEPRECATED error when building TCA.
Copying records with this TCA setting enabled, will now keep the copied state and avoid side-effects.
TYPO3 installations with active usage of
sys_action or other extensions using this TCA setting.
This option was only there for resetting some
sys_action values to default, which
can easily be achieved by a hook if needed. If an extension author uses this setting,
this should be achieved with proper DataHandler hooks.