From 83832ab3b7e44618d391e6739740aa391629c8bb Mon Sep 17 00:00:00 2001 From: Luca Haid Date: Tue, 2 Sep 2025 11:25:56 +0000 Subject: [PATCH] Update WorkorderTenantConfigModel.php --- .../WorkorderTenantConfig/WorkorderTenantConfigModel.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/WorkorderTenantConfig/WorkorderTenantConfigModel.php b/application/WorkorderTenantConfig/WorkorderTenantConfigModel.php index c813a3265..b6a37e9d7 100644 --- a/application/WorkorderTenantConfig/WorkorderTenantConfigModel.php +++ b/application/WorkorderTenantConfig/WorkorderTenantConfigModel.php @@ -7,6 +7,7 @@ class WorkorderTenantConfigModel extends TTCrudBaseModel { public string $name; public string $documentationTypes; // JSON public string $workorderCreationFilters; // JSON + public string $interventionTypes; // JSON public int $civilEngineeringDocsRequired; public int $create; public int $createBy; @@ -25,8 +26,7 @@ class WorkorderTenantConfigModel extends TTCrudBaseModel { JOIN `$dbName`.`Preorder` p ON pc.id = p.preordercampaign_id WHERE p.id = '$preorderId' LIMIT 1"; - $result = $db->query($sql); - $row = $result ? $result->fetch_assoc() : null; + $row = $db->query($sql)?->fetch_assoc(); return $row ? new self($row) : null; }}