From 158b4e3a2bf3c35a3fa019d298985598a6cd2b16 Mon Sep 17 00:00:00 2001 From: Karsten Nowak Date: Tue, 18 Jun 2024 14:02:45 +0200 Subject: [PATCH] [BUGFIX] Fix issue with empty category in overwriteDemand Related: #2495 --- Classes/Controller/NewsController.php | 1 + 1 file changed, 1 insertion(+) diff --git a/Classes/Controller/NewsController.php b/Classes/Controller/NewsController.php index 78e16800e2..84426b08c0 100644 --- a/Classes/Controller/NewsController.php +++ b/Classes/Controller/NewsController.php @@ -203,6 +203,7 @@ protected function overwriteDemandObject(NewsDemand $demand, array $overwriteDem if (!is_array($propertyValue)) { $propertyValue = GeneralUtility::trimExplode(',', $propertyValue, true); } + $propertyValue = is_array($propertyValue) ? GeneralUtility::intExplode(',', implode(',', $propertyValue), true) : $propertyValue; } ObjectAccess::setProperty($demand, $propertyName, $propertyValue); }