Minor debug packet cosmetic changes, Remove database/ items in docker build, Node address validation changes
This commit is contained in:
@@ -87,11 +87,11 @@ class HomeController extends Controller
|
||||
->rightjoin('systems',['systems.id'=>'addresses.system_id'])
|
||||
->when($zone_id || $host_id || $node_id,function($query) use ($zone_id,$host_id,$node_id) {
|
||||
return $query
|
||||
->when($zone_id,function($q,$zone_id) { return $q->where('zones.zone_id','ilike','%'.$zone_id.'%'); })
|
||||
->when($zone_id,function($q,$zone_id) { return $q->where('zones.zone_id',$zone_id); })
|
||||
->where(function($q) use ($host_id) {
|
||||
return $q
|
||||
->when($host_id,function($q,$host_id) { return $q->where('region_id','ilike','%'.$host_id.'%'); })
|
||||
->when($host_id,function($q,$host_id) { return $q->orWhere('host_id','ilike','%'.$host_id.'%'); });
|
||||
->when($host_id,function($q,$host_id) { return $q->where('region_id',$host_id); })
|
||||
->when($host_id,function($q,$host_id) { return $q->orWhere('host_id',$host_id); });
|
||||
})
|
||||
->when($node_id,function($q,$node_id) { return $q->where('node_id','ilike','%'.$node_id.'%'); });
|
||||
})
|
||||
|
Reference in New Issue
Block a user