From 7d7307e0d4efdf379a54f12b74ff61e8ec5607a0 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..7c937c037a 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); }