* [story #69914] only migrate book which are not templates.

This commit is contained in:
sunhao
2025-01-09 15:41:13 +08:00
committed by 丁永亮
parent b9841c14f0
commit bd97d666bb
+3 -1
View File
@@ -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)
{