Fixed loading Pipeworker in Building

This commit is contained in:
Frank Schubert
2024-07-09 19:09:42 +02:00
parent cc4f2e3bdb
commit 29776b61dc

View File

@@ -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;