From b5737b7ffd96db8f71a197f7d3daf1af2290330d 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..8feee979af 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); }