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:
PipoCanaja
2024-06-15 05:34:55 +02:00
committed by GitHub
parent 04a70d2fda
commit 105fb1748e

View File

@@ -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.*');
}
/**