From 105705de7b387431e9b3b1aeb941abeb8825d5c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Fr=C3=B6mken?= Date: Mon, 17 Jun 2024 22:48:35 -0700 Subject: [PATCH] [TASK] Migrate columns only to array (#277) references https://github.com/TYPO3-Documentation/Changelog-To-Doc/issues/940 Co-authored-by: lina.wolf --- Classes/Controller/ModuleController.php | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/Classes/Controller/ModuleController.php b/Classes/Controller/ModuleController.php index 5845593..7545a93 100644 --- a/Classes/Controller/ModuleController.php +++ b/Classes/Controller/ModuleController.php @@ -351,7 +351,13 @@ protected function getCreateHaikuLink(string $returnUrl): UriInterface 'season' => 'Spring', ], ], - 'columnsOnly' => 'title,season,color', + 'columnsOnly' => [ + 'tx_examples_haiku' => [ + 'title', + 'season', + 'color', + ], + ], 'returnUrl' => $returnUrl, ]; return $this->backendUriBuilder->buildUriFromRoute( @@ -373,7 +379,12 @@ protected function getEditDoktypeLink(string $returnUrl): UriInterface 1 => 'edit', ], ], - 'columnsOnly' => 'title,doktype', + 'columnsOnly' => [ + 'pages' => [ + 'title', + 'doktype', + ], + ], 'returnUrl' => $returnUrl, ]; return $this->backendUriBuilder->buildUriFromRoute(