Skip to content

Commit

Permalink
fix: wrong events were shown if noModifyPermissions and OFF
Browse files Browse the repository at this point in the history
  • Loading branch information
mrothauer committed Nov 21, 2023
1 parent 4214aa0 commit 448458d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Controller/WorkshopsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -576,6 +576,8 @@ public function ajaxGetAllWorkshopsForMap() {
// special data structure needed
$preparedWorkshop = [];

$workshop['events'] = array_values($workshop['events']); // reindex array

$tmpEvents = $workshop['events'];
unset($workshop['events']);
$preparedWorkshop['Workshop'] = $workshop;
Expand Down

0 comments on commit 448458d

Please sign in to comment.