Skip to content
Snippets Groups Projects
Commit 2b128142 authored by Susanne Moog's avatar Susanne Moog Committed by Daniel Goerz
Browse files

[BUGFIX] Allow setting onChange for category fields

When using `makeCategorizable` with options to overwrite the default
field configuration, onChange was not overwritten. This has now been
implemented.

Resolves: #84799
Releases: master, 9.5
Change-Id: If62dd0472be2214d02b3b6c538d5d35d6d41661a
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/63873


Tested-by: default avatarTYPO3com <noreply@typo3.com>
Tested-by: default avatarGeorg Ringer <georg.ringer@gmail.com>
Tested-by: default avatarDaniel Goerz <daniel.goerz@posteo.de>
Reviewed-by: default avatarGeorg Ringer <georg.ringer@gmail.com>
Reviewed-by: default avatarGuido Schmechel <guido.schmechel@brandung.de>
Reviewed-by: default avatarDaniel Goerz <daniel.goerz@posteo.de>
parent f0eb2060
Branches
Tags
No related merge requests found
......@@ -356,6 +356,9 @@ class CategoryRegistry implements SingletonInterface
if (isset($options['displayCond'])) {
$columns[$fieldName]['displayCond'] = $options['displayCond'];
}
if (isset($options['onChange'])) {
$columns[$fieldName]['onChange'] = $options['onChange'];
}
// Register opposite references for the foreign side of a relation
if (empty($GLOBALS['TCA']['sys_category']['columns']['items']['config']['MM_oppositeUsage'][$tableName])) {
......
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