* [task#142971,doing,1h] Modify the problem of upgrade doc template.

This commit is contained in:
xieqiyu
2025-05-13 10:15:25 +08:00
committed by 刘刚
parent ff226280c3
commit bdb1887020
3 changed files with 8 additions and 5 deletions
+1 -1
View File
@@ -4061,7 +4061,7 @@ class docModel extends model
$template->lib = $belongBuiltinType ? $scopeMaps[$templateMap['scope']] : $scopeMaps['project'];
$template->templateType = $belongBuiltinType ? $templateMap['code'] : $template->templateType;
$template->module = $modulePairs[$template->templateType];
$template->module = zget($modulePairs, $template->templateType, zget($modulePairs, 'Project other', 0));
$this->dao->update(TABLE_DOC)->data($template)->where('id')->eq($id)->exec();
if(dao::isError()) return false;
}