From bd97d666bbcb52f523168e75a63a3939cc2d50ff Mon Sep 17 00:00:00 2001 From: sunhao Date: Thu, 9 Jan 2025 15:25:24 +0800 Subject: [PATCH] * [story #69914] only migrate book which are not templates. --- module/doc/model.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/module/doc/model.php b/module/doc/model.php index 60990a5d73..b2e5b7cd66 100644 --- a/module/doc/model.php +++ b/module/doc/model.php @@ -875,6 +875,8 @@ class docModel extends model $chapters = $this->dao->select('id,module,lib,parent,title,`order`,grade')->from(TABLE_DOC) ->where('type')->eq('chapter') ->andWhere('deleted')->eq(0) + ->andWhere('template')->eq('') + ->andWhere('templateType')->eq('') ->andWhere('module')->in(array(null, '', 0)) ->fetchAll('id'); @@ -899,7 +901,7 @@ class docModel extends model $wikiSpace->id = $this->dao->lastInsertID(); } - $modules = array(); + $modules = array(); $wikiLibs = array(); foreach($chapters as $chapterID => $chapter) {