Bug #89729
closedException when adding LinkButtons to a SplitButton
100%
Description
The addItem method of the SplitButton class expects items of the type AbstractButton. In the render method it calls getName and getValue that are only defined for InputButtons but not LinkButtons resulting in an exception.
I don't see a reason why LinkButtons should not be supported for SplitButtons so I'd suggest that the fix is to add the rendering code for LinkButtons (or simply use the render method of the children).
Updated by Gerrit Code Review about 5 years ago
- Status changed from New 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 https://review.typo3.org/c/Packages/TYPO3.CMS/+/62360
Updated by Gerrit Code Review almost 5 years ago
Patch set 1 for branch 9.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/62979
Updated by Markus Klein almost 5 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 9b0beb70e159737ee1c4fc4c69a0036ecf4066e4.