mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Merge pull request #1228 from laf/issue-1141
No longer show disabled ports on main ports page
This commit is contained in:
@ -226,8 +226,8 @@ foreach ($ports as $data)
|
|||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="ignore">Ignored</label>
|
<label for="ignore">Ignored</label>
|
||||||
<input type=checkbox id="ignore" name="ignore" value="1" class="" <?php if ($vars['ignore']) { echo("checked"); } ?> ></input>
|
<input type=checkbox id="ignore" name="ignore" value="1" class="" <?php if ($vars['ignore']) { echo("checked"); } ?> ></input>
|
||||||
<label for="disable">Disabled</label>
|
<label for="disabled">Disabled</label>
|
||||||
<input type=checkbox id="disable" name="disable" value=1 class="" <?php if ($vars['disable']) { echo("checked"); } ?> ></input>
|
<input type=checkbox id="disabled" name="disabled" value=1 class="" <?php if ($vars['disabled']) { echo("checked"); } ?> ></input>
|
||||||
</label>
|
</label>
|
||||||
<label for="deleted">Deleted</label>
|
<label for="deleted">Deleted</label>
|
||||||
<input type=checkbox id="deleted" name="deleted" value=1 class="" <?php if ($vars['deleted']) { echo("checked"); } ?> ></input>
|
<input type=checkbox id="deleted" name="deleted" value=1 class="" <?php if ($vars['deleted']) { echo("checked"); } ?> ></input>
|
||||||
@ -303,7 +303,7 @@ foreach ($vars as $var => $value)
|
|||||||
$where .= " AND (I.ignore = 1 OR D.ignore = 1) AND I.deleted = 0";
|
$where .= " AND (I.ignore = 1 OR D.ignore = 1) AND I.deleted = 0";
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'disable':
|
case 'disabled':
|
||||||
case 'ifSpeed':
|
case 'ifSpeed':
|
||||||
if (is_numeric($value))
|
if (is_numeric($value))
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user