From 1d2bc51e9d4b7b460ef1d3dcee9069d41ec0ec12 Mon Sep 17 00:00:00 2001 From: Michael Kessler <michael.kessler@sgalinski.de> Date: Fri, 1 Apr 2022 11:16:13 +0200 Subject: [PATCH] [TASK] Setup grid columns in overview without categories --- Classes/Controller/OverviewController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Classes/Controller/OverviewController.php b/Classes/Controller/OverviewController.php index c03603b..0a524e7 100644 --- a/Classes/Controller/OverviewController.php +++ b/Classes/Controller/OverviewController.php @@ -106,8 +106,6 @@ class OverviewController extends AbstractController { * @throws \TYPO3\CMS\Extbase\Configuration\Exception\InvalidConfigurationTypeException */ public function overviewAction(array $newsFilter = [], int $currentPageBrowserPage = 0) { - $this->setupGridColumns(); - if ((int) $this->settings['groupBy'] === 0 && (bool) $this->settings['enableFilter'] === FALSE) { $this->forward('overviewWithoutCategories', NULL, NULL, $this->request->getArguments()); } @@ -287,6 +285,7 @@ class OverviewController extends AbstractController { $this->view->assign('numberOfPages', $numberOfPages); $this->view->assign('newsItems', $newsItems); $this->view->assign('allNews', $allNews); + $this->setupGridColumns(); switch ($this->settings['groupBy']) { case 1: @@ -500,6 +499,7 @@ class OverviewController extends AbstractController { $this->view->assign('categories', $categories); $this->view->assign('numberOfPages', $numberOfPages); $this->view->assign('newsMetaData', $newsMetaData); + $this->setupGridColumns(); } /** -- GitLab