Skip to content

Commit

Permalink
Bug - Sorting FDB table by devices (librenms#16116)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
PipoCanaja and murrant committed Jun 15, 2024
1 parent 04a70d2 commit 105fb17
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/Http/Controllers/Table/FdbTablesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ protected function filterFields($request)
protected function baseQuery($request)
{
return PortsFdb::hasAccess($request->user())
->with(['device', 'port', 'vlan', 'ipv4Addresses']);
->with(['device', 'port', 'vlan', 'ipv4Addresses'])
->select('ports_fdb.*');
}

/**
Expand Down

0 comments on commit 105fb17

Please sign in to comment.