From e056c3f010711b9092e41008a35a17b7a39882d8 Mon Sep 17 00:00:00 2001 From: Fabian Galinski <fabian@sgalinski.de> Date: Thu, 14 Nov 2019 14:30:33 +0100 Subject: [PATCH] [TASK] Make the author id optional as a parameter --- Classes/Controller/NewsByAuthorController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/Controller/NewsByAuthorController.php b/Classes/Controller/NewsByAuthorController.php index 1cd75c8..69ef3ee 100644 --- a/Classes/Controller/NewsByAuthorController.php +++ b/Classes/Controller/NewsByAuthorController.php @@ -45,7 +45,7 @@ class NewsByAuthorController extends AbstractController { * @throws \InvalidArgumentException * @throws \TYPO3\CMS\Extbase\Persistence\Exception\InvalidQueryException */ - public function listAction($authorId) { + public function listAction($authorId = 0) { if ($authorId) { $newsAuthorsIds[] = $authorId; } else { -- GitLab