From e9efabd5626529102f752972f8f413c3d74e64cf Mon Sep 17 00:00:00 2001 From: jokob-sk Date: Sun, 22 Feb 2026 09:47:00 +1100 Subject: [PATCH] FE: mixed case on MACs broke node expansion/collapse Signed-off-by: jokob-sk --- front/network.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/front/network.php b/front/network.php index 0d531233..70156619 100755 --- a/front/network.php +++ b/front/network.php @@ -570,10 +570,10 @@ function getChildren(node, list, path, visited = []) // Loop through all items to find children of the current node for (var i in list) { const item = list[i]; - const parentMac = item.devParentMAC || ""; // null-safe - const nodeMac = node.devMac || ""; // null-safe + const parentMac = item.devParentMAC.toLowerCase() || ""; // null-safe + const nodeMac = node.devMac.toLowerCase() || ""; // null-safe - if (parentMac != "" && parentMac.toLowerCase() == nodeMac.toLowerCase() && !hiddenMacs.includes(parentMac)) { + if (parentMac != "" && parentMac == nodeMac && !hiddenMacs.includes(parentMac)) { visibleNodesCount++; @@ -654,6 +654,8 @@ function toggleSubTree(parentMac, treePath) { treePath = treePath.split('|') + parentMac = parentMac.toLowerCase() + if(!hiddenMacs.includes(parentMac)) { hiddenMacs.push(parentMac)