Bug #87182
closedActionMenuItemViewHelper issue with selected-attribute
100%
Description
The ActionMenuItemViewHelper is not resetting the selected-attribute for the rendered items, thus all options that follow a selected menu item, will also get selected.
It also does not respect the given arguments of the menu item. It also selects menu items with the same controller => action combination, but with different arguments.
Files
Updated by Gerrit Code Review almost 6 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/59176
Updated by Gerrit Code Review almost 6 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/59176
Updated by Gerrit Code Review almost 6 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/59176
Updated by Gerrit Code Review almost 6 years ago
Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/59176
Updated by Gerrit Code Review almost 6 years ago
Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/59176
Updated by Gerrit Code Review almost 6 years ago
Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/59176
Updated by Stefanos Karasavvidis over 5 years ago
to reproduce this, you can use the attached extension. It has a simple backend module (under admin tools) that uses the ActionMenuItemViewHelper for 4 different actions:
index
list1
list2 with argument 1
list2 with argument 2
Using actions index and list1 leaves the dropdown correctly selected to the action that was used.
Using action list2 leaves the dropdown always to the last action in the list. The markup that is generated has the "selected" attribute in both options.
Updated by Stefanos Karasavvidis over 5 years ago
corrected minor typos in test extension
Updated by Gerrit Code Review over 4 years ago
Patch set 7 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/+/59176
Updated by Gerrit Code Review over 4 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/+/63582
Updated by Gerrit Code Review over 4 years ago
Patch set 2 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/+/63582
Updated by Kevin Ditscheid over 4 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset f9df4a17cf9f11d2f45ac9624f70da45a96a80f2.