Usability fixes

This commit is contained in:
Deon George
2021-07-02 23:19:50 +10:00
parent 4522f26bf3
commit 64fd264427
8 changed files with 47 additions and 14 deletions

View File

@@ -65,7 +65,7 @@ class DomainController extends Controller
$oo = Address::where('role',self::NODE_NC)
->where('zone_id',$o->id)
->when($region,function($query,$region) { return $query->where('region_id',$region)->where('node_id','<>',0); })
->when((! $region),function($query) use ($region) { return $query->whereNull('region_id'); })
->when((! $region),function($query) use ($region) { return $query->where('region_id',0); })
->where('point_id',0)
->with(['system'])
->get();