fixed unvisible categorys

This commit is contained in:
jhartworks committed 2026-11-09 13:04:18 +01:00
1 parent 1de0a60bd0
commit 601be6719f
6 files changed
+590 -563

No files matched your search

+3
View File
@@ -390,6 +390,9 @@ class NextFloor extends IPSModuleStrict
'hidden' => (bool) $object['ObjectIsHidden'],
'icon' => (string) $object['ObjectIcon']
];
if ($type === 1) { // OBJECTTYPE_INSTANCE: the logical console view separates system modules.
$node['module_type'] = (int) IPS_GetInstance($objectID)['ModuleInfo']['ModuleType'];
}
if ($type === 0) { // OBJECTTYPE_CATEGORY
$nearestCategory = $objectID;
$areas[] = ['area_id' => 'symcon-category-' . $objectID, 'name' => implode(' / ', $path)];