From 866c3b2ae1e019b50d8326066f8d3afb5c48c8a6 Mon Sep 17 00:00:00 2001 From: Frank Schubert Date: Thu, 21 Aug 2025 10:37:15 +0200 Subject: [PATCH] Fixed crash in AddressDB::handleRimoStatusUpdate() --- application/AddressDB/AddressDB.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/AddressDB/AddressDB.php b/application/AddressDB/AddressDB.php index a12e969db..339d0f5a8 100644 --- a/application/AddressDB/AddressDB.php +++ b/application/AddressDB/AddressDB.php @@ -226,9 +226,9 @@ class AddressDB { $log->debug(__METHOD__.": new Preorder Status flag: ".$matrix["pf"]); $preorder = PreorderModel::getFirstActive(["adb_wohneinheit_id" => $wohneinheit->id]); - $preorder->resetSaveNesting(); if($preorder) { + $preorder->resetSaveNesting(); $preorderstatus = null; $preorderstatus_flag = null; if(array_key_exists("p", $matrix) && $matrix["p"]) {