From 64ac87995c2aff9037cd1c7e6f02aeaa4fc336d4 Mon Sep 17 00:00:00 2001 From: liumengyi Date: Thu, 17 Nov 2022 08:46:41 +0800 Subject: [PATCH] * Fix bug #29902. --- module/tree/control.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/tree/control.php b/module/tree/control.php index 78165e7555..3821379227 100644 --- a/module/tree/control.php +++ b/module/tree/control.php @@ -494,7 +494,7 @@ class tree extends control if($module->type == 'doc') $confirmLang = $this->lang->tree->confirmDeleteMenu; if($module->type == 'line') $confirmLang = $this->lang->tree->confirmDeleteLine; if($module->type == 'host') $confirmLang = $this->lang->tree->confirmDeleteHost; - if($module->type == 'chart') $confirmLang = $this->lang->tree->confirmDeleteGroup; + if(strpos($this->config->tree->groupTypes, ",$module->type,") !== false) $confirmLang = $this->lang->tree->confirmDeleteGroup; die(js::confirm($confirmLang, $this->createLink('tree', 'delete', "rootID=$rootID&moduleID=$moduleID&confirm=yes"))); } else