Skip to content

Commit

Permalink
Merge pull request #230 from helsingborg-stad/fix/undefined-id
Browse files Browse the repository at this point in the history
fix: undefined module id
  • Loading branch information
NiclasNorin authored Feb 15, 2024
2 parents 0db0aed + 6762bd6 commit 46b1eaf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/php/Module/Event/Event.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,9 @@ public function data(): array

// Cards module data
$data['settings'] = $data;
$data['ID'] = $this->ID ?? uniqid();

$this->template = !empty($data['mod_event_display']) ? $data['mod_event_display'] : 'list';
$this->template = !empty($data['mod_event_display']) ? $data['mod_event_display'] : 'list';

$data['template'] = $this->template;
$data['post_id'] = $post->ID;
Expand Down

0 comments on commit 46b1eaf

Please sign in to comment.