From 5e162a342750e496feec7400643d1474c7a39463 Mon Sep 17 00:00:00 2001 From: Deon George Date: Wed, 26 Jun 2024 23:55:10 +1000 Subject: [PATCH] Return more system attributes with Address::findFTN() --- 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 fe45b15..db189d9 100644 --- a/app/Models/Address.php +++ b/app/Models/Address.php @@ -209,7 +209,7 @@ class Address extends Model $o = $query ->where('region_id',$ftn['n']) ->where('host_id',$ftn['n']) - ->with(['system:id,active']) + ->with(['system:id,active,name,address']) ->first(); // Look for a normal address @@ -224,7 +224,7 @@ class Address extends Model }) ->orWhere('host_id',$ftn['n']); }) - ->with(['system:id,active']) + ->with(['system:id,active,name,address']) ->first(); // Check and see if we are a flattened domain, our address might be available with a different zone.