Indicator on Port Notes tab when Port has notes (#14923)

* Update port.inc.php

* Use Port Object
This commit is contained in:
electrocret
2023-04-05 15:52:13 -05:00
committed by GitHub
parent 14f19eb6cf
commit 8e5f26652e

View File

@@ -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';