Skip to content

Commit

Permalink
[TASK] Fix undefined array key error in ActionMenuItemViewHelper
Browse files Browse the repository at this point in the history
The variable $this->arguments['selected'] is not always set.

Resolves: #95283
Releases: master
Change-Id: I24ac026300c04bd9bf2e5f2bab580cdf847df5ad
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/71169
Tested-by: core-ci <typo3@b13.com>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Oliver Bartsch <bo@cedev.de>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Oliver Bartsch <bo@cedev.de>
  • Loading branch information
wouter90 authored and o-ba committed Sep 21, 2021
1 parent 05f19cb commit 1ec67c4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ protected function evaluateSelectItemState(string $controller, string $action, a
array_merge(['controller' => $controller, 'action' => $action], $arguments)
);
if (
$this->arguments['selected'] ||
($this->arguments['selected'] ?? false) ||
array_diff($flatRequestArguments, $flatViewHelperArguments) === []
) {
$this->tag->addAttribute('selected', 'selected');
Expand Down

0 comments on commit 1ec67c4

Please sign in to comment.