From 4e4cd65f342198c3779ce80a8d8cb3401108988e Mon Sep 17 00:00:00 2001 From: Frank Schubert Date: Mon, 29 Sep 2025 12:18:50 +0200 Subject: [PATCH] Restored old behaviour returning empty hausnummer/wohneinheit in Preorder::getProperty() --- application/Preorder/Preorder.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/application/Preorder/Preorder.php b/application/Preorder/Preorder.php index b52634dfa..3e3f9fb98 100644 --- a/application/Preorder/Preorder.php +++ b/application/Preorder/Preorder.php @@ -1542,9 +1542,10 @@ class Preorder extends mfBaseModel { if($hausnummer && $hausnummer->id) { mfValuecache::singleton()->set("mfObjectmodel-adb_hausnummer-" . $this->adb_hausnummer_id, $hausnummer); $this->adb_hausnummer = $hausnummer; + return $this->adb_hausnummer; } - return $this->adb_hausnummer; + return new ADBHausnummer(); } if($name == "adb_wohneinheit") { @@ -1555,9 +1556,10 @@ class Preorder extends mfBaseModel { if($wohneinheit && $wohneinheit->id) { mfValuecache::singleton()->set("mfObjectmodel-adb_wohneinheit-" . $this->adb_wohneinheit_id, $wohneinheit); $this->adb_wohneinheit = $wohneinheit; + return $this->adb_wohneinheit; } - return $this->adb_wohneinheit; + return new ADBWohneinheit(); } if($name == "services") {