Bug #61276
closed
TCA property "exclusiveKeys" prevents from selecting an item
Added by most wanted about 10 years ago.
Updated about 6 years ago.
Category:
FormEngine aka TCEforms
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
This Bug seems to be introduced with TYPO3 6.2 - worked with TYPO3 6.1.? before.
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.
Markus Klein wrote:
Which variable is undefined in the screenshot?
Sorry, I am not able to check this before the upcomming weekend.
- Status changed from New to Needs Feedback
- 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
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
- Complexity set to no-brainer
- Is Regression changed from No to Yes
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
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
- Status changed from Resolved to Closed
Also available in: Atom
PDF