From d64d98cb168bb856f4f9ebae6cde98c0b516c30c Mon Sep 17 00:00:00 2001 From: hufangzhou Date: Tue, 20 Sep 2022 13:40:13 +0800 Subject: [PATCH] * Fixed an issue where submodules could not be obtained. --- module/tree/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/tree/model.php b/module/tree/model.php index 8c8a2582ec..ed31f2a3d9 100644 --- a/module/tree/model.php +++ b/module/tree/model.php @@ -1452,7 +1452,7 @@ class treeModel extends model $module = $this->getById((int)$moduleID); if(empty($module)) return array(); - return $this->dao->select('id')->from(TABLE_MODULE)->where("CONCAT(',', path, ',')")->like("%,$module->path,%")->andWhere('deleted')->eq(0)->fetchPairs(); + return $this->dao->select('id')->from(TABLE_MODULE)->where("CONCAT(',', path, ',')")->like("%$module->path%")->andWhere('deleted')->eq(0)->fetchPairs(); } /**