Skip to content

Commit

Permalink
[BUGFIX] Fix issue with empty category in overwriteDemand
Browse files Browse the repository at this point in the history
Related: #2495
  • Loading branch information
kanow committed Jun 19, 2024
1 parent 9c74fd8 commit 158b4e3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Classes/Controller/NewsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 158b4e3

Please sign in to comment.