* Set module root.

This commit is contained in:
daitingting
2024-04-16 02:35:11 +00:00
parent 4056315fbe
commit 7b7d0b84df
+1 -1
View File
@@ -1911,7 +1911,7 @@ class treeModel extends model
if($self)
{
if($type == 'host') $module->root = 0;
if($type == 'host' || !isset($module->root)) $module->root = 0;
if($self->root && !isset($module->root)) $module->root = $self->root;
if($self->parent != $module->parent || $self->root != $module->root)
{