mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fix devices page search & OS loading (#9752)
* Fix devices page search * add a definition_loaded flag to prevent false positives for already loaded OS * Fix copy paste error * and another
This commit is contained in:
@@ -75,7 +75,7 @@ class DeviceController extends TableController
|
||||
$query = Device::hasAccess($request->user())->with('location')->select('devices.*');
|
||||
|
||||
// if searching or sorting the location field, join the locations table
|
||||
if ($request->get('term') || in_array('location', array_keys($request->get('sort', [])))) {
|
||||
if ($request->get('searchPhrase') || in_array('location', array_keys($request->get('sort', [])))) {
|
||||
$query->leftJoin('locations', 'locations.id', 'devices.location_id');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user