Fixed subject in MaintenanceNotification Index
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user