mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Corrected active_count for Alert icon color (#9933)
* Corrected active_count for Alert icon color * Corrected active_count for Alert icon color * Corrected active_count for Alert icon color * Laravel version * Laravel version check status worse and better for isActive * cleanup
This commit is contained in:
@@ -222,6 +222,9 @@ class MenuComposer
|
||||
$alert_status = AlertRule::select('severity')
|
||||
->isActive()
|
||||
->hasAccess($user)
|
||||
->leftJoin('devices', 'alerts.device_id', '=', 'devices.device_id')
|
||||
->where('devices.disabled', '=', '0')
|
||||
->where('devices.ignore', '=', '0')
|
||||
->groupBy('severity')
|
||||
->pluck('severity');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user