Bug #39457
Calculation of ViewHelpers_Be_Menus_ActionMenuItemViewHelper's selected option is wrong
| Status: | New | Start date: | 2012-08-01 | |
|---|---|---|---|---|
| Priority: | Should have | Due date: | ||
| Assignee: | - | % Done: | 0% |
|
| Category: | Fluid: ViewHelpers | |||
| Target version: | - | |||
| Complexity: | ||||
| Votes: | 0 |
Description
Currently the ViewHelper ViewHelpers_Be_Menus_ActionMenuItemViewHelper compares only action + controller to get the selected option. This is not enough.
IMO also the arguments need to be taken into account
VH needs to be changed to
unset($currentArguments['action']);
unset($currentArguments['controller']);
if ($action === $currentAction && $controller === $currentController && $currentArguments === $arguments) {
$this->tag->addAttribute('selected', 'selected');
}
History
Updated by Anja Leichsenring 6 months ago
- Project changed from Extbase MVC Framework to Fluid
- Category changed from 963 to Fluid: ViewHelpers