mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Indicator on Port Notes tab when Port has notes (#14923)
* Update port.inc.php * Use Port Object
This commit is contained in:
@@ -79,7 +79,7 @@ $menu_options['realtime'] = 'Real time';
|
||||
$menu_options['arp'] = 'ARP Table';
|
||||
$menu_options['fdb'] = 'FDB Table';
|
||||
$menu_options['events'] = 'Eventlog';
|
||||
$menu_options['notes'] = 'Notes';
|
||||
$menu_options['notes'] = (get_dev_attrib($device, 'port_id_notes:' . $port->port_id) ?? '') == '' ? 'Notes' : 'Notes*';
|
||||
|
||||
if (dbFetchCell("SELECT COUNT(*) FROM `sensors` WHERE `device_id` = ? AND `entPhysicalIndex` = ? AND entPhysicalIndex_measured = 'ports'", [$device['device_id'], $port->ifIndex])) {
|
||||
$menu_options['sensors'] = 'Health';
|
||||
|
Reference in New Issue
Block a user