docs + hiding archived devices in Network view

This commit is contained in:
jokob-sk
2025-06-28 16:46:05 +10:00
parent 73f6e6d785
commit c646c36f4f
5 changed files with 65 additions and 4 deletions

View File

@@ -163,7 +163,7 @@
devType as type,
devLastIP as last_ip,
(select devType from Devices a where devMac = "'.$node_mac.'") as node_type
FROM Devices WHERE devParentMAC = "'.$node_mac.'" order by port, name asc';
FROM Devices WHERE devParentMAC = "'.$node_mac.'" and devIsArchived = 0 order by port, name asc';
global $db;
$func_result = $db->query($func_sql);
@@ -279,7 +279,7 @@
a.devParentMAC as parent_mac,
a.devIcon as node_icon
FROM Devices a
WHERE a.devType in (".$networkDeviceTypes.")
WHERE a.devType in (".$networkDeviceTypes.") and devIsArchived = 0
) t1
LEFT JOIN
(