From 8ae0f5cc9ca6b239aa9062f1a677ca77ba252aae Mon Sep 17 00:00:00 2001 From: wangyuting Date: Thu, 5 Jun 2025 02:17:04 +0000 Subject: [PATCH] * Filter isTpl during upgrade and install. --- lib/base/dao/dao.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/base/dao/dao.class.php b/lib/base/dao/dao.class.php index 1e1d7f7f94..f112c3645e 100644 --- a/lib/base/dao/dao.class.php +++ b/lib/base/dao/dao.class.php @@ -882,7 +882,7 @@ class baseDAO $sql .= '(`' . implode('`,`', array_keys($values)) . '`)' . ' VALUES(' . implode(',', $values) . ')'; } - elseif($this->method == 'select' && dao::$filterTpl == 'always' && $filterTpl) + elseif($this->method == 'select' && dao::$filterTpl == 'always' && $filterTpl && empty($this->app->installing) && empty($this->app->upgrading)) { /* 过滤模板类型的数据 */ foreach(array('project', 'task') as $table)