From db37cc7aa4e03a3c6ae995ebde247ca84b385fc5 Mon Sep 17 00:00:00 2001 From: Deon George Date: Wed, 19 Jul 2023 16:51:40 +1000 Subject: [PATCH] Correctly display 4D address when selecting area subscription --- app/Http/Controllers/SystemController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/SystemController.php b/app/Http/Controllers/SystemController.php index f01c981..98a9238 100644 --- a/app/Http/Controllers/SystemController.php +++ b/app/Http/Controllers/SystemController.php @@ -299,14 +299,14 @@ class SystemController extends Controller public function api_address(Request $request,System $o): Collection { - return Address::select(['addresses.id','addresses.zone_id','region_id','host_id','node_id']) + return Address::select(['addresses.id','addresses.zone_id','region_id','host_id','node_id','point_id']) ->leftjoin('zones',['zones.id'=>'addresses.zone_id']) ->where('addresses.system_id',$o->id) ->where('zones.domain_id',$request->domain_id) ->withTrashed() ->FTNorder() ->get() - ->map(function($item) { return ['id'=>(string)$item->id,'value'=>$item->ftn3d]; }); + ->map(function($item) { return ['id'=>(string)$item->id,'value'=>$item->ftn4d]; }); } /**