mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Bug - Sorting FDB table by devices (#16116)
* fix * Fix the issue The left join with the device was pulling in a "port" field which then caused Eloquent to think the port relationship was already loaded. --------- Co-authored-by: Tony Murray <murraytony@gmail.com>
This commit is contained in:
@@ -68,7 +68,8 @@ class FdbTablesController extends TableController
|
||||
protected function baseQuery($request)
|
||||
{
|
||||
return PortsFdb::hasAccess($request->user())
|
||||
->with(['device', 'port', 'vlan', 'ipv4Addresses']);
|
||||
->with(['device', 'port', 'vlan', 'ipv4Addresses'])
|
||||
->select('ports_fdb.*');
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user