diff --git a/source/php/Module/Event/Event.php b/source/php/Module/Event/Event.php index 311eeb5e..f5bc5a84 100644 --- a/source/php/Module/Event/Event.php +++ b/source/php/Module/Event/Event.php @@ -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;