TCA property "exclusiveKeys" prevents from selecting an item
In the TYPO3 backend the TCA property "exclusiveKeys" of column type "select" prevents a backend user from selecting an item if only one key is set.
It expects a string (list of) but only works if it is set to at least two keys seperated by a comma.
- works: 'exclusiveKeys' => '-1,-999'
- does not work: 'exclusiveKeys' => '-1'
Enclosed please find a screenshot of the error message the Chrome developer tools show.
Updated by Markus Klein almost 7 years ago
Which variable is undefined in the screenshot?
The related change is https://review.typo3.org/18971
But the code seems to be a 1:1 copy of the previous code, except that the configuration (incl. excludedKeys) are now handed over to JS via data-* attributes.