Skip to content

Commit

Permalink
[TASK] fixed regression (thanks to jpmschuler)
Browse files Browse the repository at this point in the history
  • Loading branch information
rupertgermann committed Sep 29, 2024
1 parent 64c4bd9 commit 4e1b5be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Hooks/DataHandlerHook.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ public function processDatamap_preProcessFieldArray(&$fieldArray, $table, $id, &
$allowedItems = $this->getBeUser()->getTSConfig()['tt_newsPerms.']['tt_news_cat.']['allowedItems'] ?? '';
$allowedItems = $allowedItems ? GeneralUtility::intExplode(',', $allowedItems) : Div::getAllowedTreeIDs();

$wantedCategories = GeneralUtility::intExplode(',', $fieldArray['category'] ?? '');
$wantedCategories = ($fieldArray['category'] ?? false) ? GeneralUtility::intExplode(',', $fieldArray['category']) : [];
foreach ($wantedCategories as $wantedCategory) {
$categories[$wantedCategory] = $wantedCategory;
}
Expand Down

0 comments on commit 4e1b5be

Please sign in to comment.