Skip to content

Commit

Permalink
[BUGFIX] Make filter in receiver list work again for usergroups
Browse files Browse the repository at this point in the history
For any reason, the first time when filtering after a group, everything works as expected. Nevertheless, the name of the select field changes from filter[usergroup] to filter[usergroup][__identity]. Even changing property to name did not help.
  • Loading branch information
einpraegsam committed Oct 16, 2024
1 parent cc0ab7f commit 9ab5775
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Classes/Controller/AbstractNewsletterController.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ protected function setFilter(): void
$filter
);
}
if (isset($filter['usergroup']['__identity'])) {
$filter['usergroup'] = $filter['usergroup']['__identity'];
}
$clearFields = ['usergroup', 'configuration', 'category'];
foreach ($clearFields as $clearField) {
if (($filter[$clearField] ?? '0') === '0' || is_array($filter[$clearField])) {
Expand Down

0 comments on commit 9ab5775

Please sign in to comment.