Skip to content

Commit

Permalink
[BUGFIX] Use module state of reports module
Browse files Browse the repository at this point in the history
The reports module stores its latest action selection in
backend user uc and should select that action on next
call again. This broke with the refactoring of #84231

Resolves: #86318
Related: #84231
Releases: master
Change-Id: If3cfe27361bcdc7b15c2f1cfaa34a8cc0c1e88c9
Reviewed-on: https://review.typo3.org/58336
Reviewed-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Tested-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
  • Loading branch information
lolli42 authored and maddy2101 committed Sep 19, 2018
1 parent 9d18c1c commit a471ed7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion typo3/sysext/reports/Classes/Controller/ReportController.php
Expand Up @@ -79,7 +79,7 @@ public function __construct()
*/
public function handleRequest(ServerRequestInterface $request): ResponseInterface
{
$action = $request->getQueryParams()['action'] ?? $request->getParsedBody()['action'] ?? 'index';
$action = $request->getQueryParams()['action'] ?? $request->getParsedBody()['action'] ?? '';
$extension = $request->getQueryParams()['extension'] ?? $request->getParsedBody()['extension'];
$isRedirect = $request->getQueryParams()['redirect'] ?? $request->getParsedBody()['redirect'] ?? false;

Expand All @@ -96,6 +96,9 @@ public function handleRequest(ServerRequestInterface $request): ResponseInterfac
]), 303);
}
}
if (empty($action)) {
$action = 'index';
}

$this->initializeView($action);

Expand Down

0 comments on commit a471ed7

Please sign in to comment.