diff --git a/Layout/default/MaintenanceNotification/Index.php b/Layout/default/MaintenanceNotification/Index.php
index e87f2da9f..c9e4d22e7 100644
--- a/Layout/default/MaintenanceNotification/Index.php
+++ b/Layout/default/MaintenanceNotification/Index.php
@@ -85,7 +85,7 @@
- | =$notification->subject?> |
+ =$notification->subject->subject?> |
=($notification->plz) ? implode(", ", $notification->plzs) : ""?> |
=($notification->send_ts) ? date("d.m.Y H:i", $notification->send_ts) : ""?> |
=($notification->sent) ? "Ja" : "nein"?> |
diff --git a/application/MaintenanceNotification/MaintenanceNotification.php b/application/MaintenanceNotification/MaintenanceNotification.php
index ad8e915b6..1696d0248 100644
--- a/application/MaintenanceNotification/MaintenanceNotification.php
+++ b/application/MaintenanceNotification/MaintenanceNotification.php
@@ -1,12 +1,21 @@
$name == null) {
+ if($name == "subject") {
+ $subject = new MaintenanceNotificationTemplate($this->subject_id);
+ if($subject) {
+ $this->subject = $subject;
+ }
+ return $this->subject;
+ }
+
if($name == "plzs") {
if(!$this->plz) return [];
$plzs = json_decode($this->plz);