Show only relevant MIB graphs

This reduces noise in the drop-down by only displaying MIB graphs defined for the device.
This commit is contained in:
Paul Gear
2016-01-17 15:00:15 +10:00
parent a7c0c1b762
commit e38c2f6885
2 changed files with 11 additions and 4 deletions

View File

@@ -64,7 +64,7 @@ else {
onchange="window.open(this.options[this.selectedIndex].value,'_top')" >
<?php
foreach (get_graph_subtypes($type) as $avail_type) {
foreach (get_graph_subtypes($type, $device) as $avail_type) {
echo("<option value='".generate_url($vars, array('type' => $type."_".$avail_type, 'page' => "graphs"))."'");
if ($avail_type == $subtype) {
echo(" selected");