Bug #61276
closedTCA property "exclusiveKeys" prevents from selecting an item
100%
Description
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'
"Does not work" means that no item can be selected at all - a JavaScript error is thrown instead.
Enclosed please find a screenshot of the error message the Chrome developer tools show.
Files
Updated by most wanted over 10 years ago
This Bug seems to be introduced with TYPO3 6.2 - worked with TYPO3 6.1.? before.
Updated by Markus Klein over 10 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.
Updated by most wanted over 10 years ago
Markus Klein wrote:
Which variable is undefined in the screenshot?
Sorry, I am not able to check this before the upcomming weekend.
Updated by Markus Klein over 10 years ago
- Status changed from New to Needs Feedback
Updated by Gerrit Code Review over 10 years ago
- Status changed from Needs Feedback to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/32591
Updated by Gerrit Code Review over 10 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/32591
Updated by Markus Klein over 10 years ago
- Complexity set to no-brainer
- Is Regression changed from No to Yes
Updated by Gerrit Code Review over 10 years ago
Patch set 1 for branch TYPO3_6-2 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/32600
Updated by most wanted over 10 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset a869cd3abef520c13837af386b3ec5149d39de5a.