From 6bba18fc5f7cf82d404f89b74d620ca83ea2374a Mon Sep 17 00:00:00 2001 From: Deon George Date: Mon, 21 Oct 2024 08:40:47 +1100 Subject: [PATCH] Add hold when populating address with system data --- app/Models/Address.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Models/Address.php b/app/Models/Address.php index 3ebb619..9876dd0 100644 --- a/app/Models/Address.php +++ b/app/Models/Address.php @@ -214,7 +214,7 @@ class Address extends Model $o = $query ->where('region_id',$ftn['n']) ->where('host_id',$ftn['n']) - ->with(['system:id,active,name,address,pkt_msgs']) + ->with(['system:id,active,name,address,pkt_msgs,last_session,hold']) ->first(); // Look for a normal address @@ -229,7 +229,7 @@ class Address extends Model }) ->orWhere('host_id',$ftn['n']); }) - ->with(['system:id,active,name,address,pkt_msgs,last_session']) + ->with(['system:id,active,name,address,pkt_msgs,last_session,hold']) ->first(); // Check and see if we are a flattened domain, our address might be available with a different zone.