From 67291a7c23e710ebd5eafe579fb0c71dea22d8ef Mon Sep 17 00:00:00 2001 From: daitingting Date: Mon, 9 Jun 2025 11:36:56 +0000 Subject: [PATCH] * [task#144516,doing,0.5h] Do not update white list for child template. --- module/doc/model.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/doc/model.php b/module/doc/model.php index 3550cea4da..38dc0d61cb 100644 --- a/module/doc/model.php +++ b/module/doc/model.php @@ -1768,14 +1768,14 @@ class docModel extends model if(dao::isError()) return false; if($files) $this->file->updateObjectID($this->post->uid, $docID, 'doc'); + /* 如果修改了父模板,子模板也同步更新相关信息。*/ + /* If the parent template is modified, the child template will also update the relevant information synchronously. */ if(!empty($oldDoc->templateType) && empty($doc->parent) && $basicInfoChanged) { $this->dao->update(TABLE_DOC) ->set('module')->eq($doc->module) ->set('lib')->eq($doc->lib) ->set('acl')->eq($doc->acl) - ->set('groups')->eq($doc->groups) - ->set('users')->eq($doc->users) ->where("FIND_IN_SET('{$docID}', `path`)") ->exec(); }