Fixed loading Pipeworker in Building
This commit is contained in:
@@ -267,7 +267,7 @@ class Building extends mfBaseModel {
|
||||
if($name == "pipeworker") {
|
||||
$pipeworker = mfValuecache::singleton()->get("mfObjectmodel-Address-".$this->pipeworker_id);
|
||||
if(!$pipeworker) {
|
||||
$pipeworker = new Buildingstatus($this->pipeworker_id);
|
||||
$pipeworker = new Address($this->pipeworker_id);
|
||||
mfValuecache::singleton()->set("mfObjectmodel-Address-".$this->pipeworker_id, $pipeworker);
|
||||
}
|
||||
$this->pipeworker = $pipeworker;
|
||||
|
||||
Reference in New Issue
Block a user