Merge branch 'fronkdev' into 'master'

Fixed subject in MaintenanceNotification Index

See merge request fronk/thetool!723
This commit is contained in:
Frank Schubert
2024-11-12 17:42:26 +00:00
2 changed files with 10 additions and 1 deletions
@@ -1,12 +1,21 @@
<?php
class MaintenanceNotification extends mfBaseModel {
private $subject;
private $plzs;
public function getProperty($name) {
if($this->$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);