Correctly display 4D address when selecting area subscription
This commit is contained in:
parent
e1169335be
commit
db37cc7aa4
@ -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]; });
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user