mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fix the menu that filters out erroring ports (#10680)
* Changes yes to 1 so that it works * Accept 1 or 0 or yes or no * Update menu.blade.php
This commit is contained in:
committed by
Tony Murray
parent
5a169fc85e
commit
c4eb499753
@@ -331,19 +331,19 @@ foreach ($vars as $var => $value) {
|
||||
$param[] = $value;
|
||||
break;
|
||||
case 'deleted':
|
||||
if ($value == 1) {
|
||||
if ($value == 1 || $value == 'yes') {
|
||||
$where .= " AND `I`.`deleted` = 1";
|
||||
$ignore_filter = 1;
|
||||
}
|
||||
break;
|
||||
case 'ignore':
|
||||
if ($value == 1) {
|
||||
if ($value == 1 || $value == 'yes') {
|
||||
$where .= " AND (I.ignore = 1 OR D.ignore = 1) AND I.deleted = 0";
|
||||
$ignore_filter = 1;
|
||||
}
|
||||
break;
|
||||
case 'disabled':
|
||||
if ($value == 1) {
|
||||
if ($value == 1 || $value == 'yes') {
|
||||
$where .= " AND `I`.`disabled` = 1 AND `I`.`deleted` = 0";
|
||||
$disabled_filter = 1;
|
||||
}
|
||||
@@ -364,7 +364,7 @@ foreach ($vars as $var => $value) {
|
||||
$param[] = "%" . $value . "%";
|
||||
break;
|
||||
case 'errors':
|
||||
if ($value == 1) {
|
||||
if ($value == 1 || $value == 'yes') {
|
||||
$where .= " AND (I.`ifInErrors_delta` > '0' OR I.`ifOutErrors_delta` > '0')";
|
||||
}
|
||||
break;
|
||||
|
Reference in New Issue
Block a user