Enable merging address in a domain that has flatten set
This commit is contained in:
@@ -386,6 +386,15 @@ class SystemController extends Controller
|
||||
->where('point_id',$o->point_id)
|
||||
->get();
|
||||
|
||||
if ($o->zone->domain->flatten)
|
||||
$oo = $oo->merge(Address::withTrashed()
|
||||
->whereIn('zone_id',$o->zone->domain->zones->pluck('id'))
|
||||
->where('host_id',$o->host_id)
|
||||
->where('node_id',$o->node_id)
|
||||
->where('point_id',$o->point_id)
|
||||
->get()
|
||||
);
|
||||
|
||||
return view('system/address-merge')
|
||||
->with('o',$o)
|
||||
->with('oo',$oo);
|
||||
|
Reference in New Issue
Block a user