* [bug#61909] Query all template in list.

This commit is contained in:
xieqiyu
2025-04-28 09:51:36 +08:00
committed by 刘刚
parent 222df1759b
commit 7bd5cbac2b
+1 -3
View File
@@ -539,9 +539,7 @@ class doc extends control
$libModules = $this->doc->getTemplateModules($libID);
if($mode == 'create' && empty($libModules)) return $this->send(array('result' => 'success', 'load' => array('alert' => $this->lang->docTemplate->createTypeFirst)));
$this->app->loadClass('pager', true);
$pager = new pager($recTotal, $recPerPage, $pageID);
$templateList = $this->doc->getDocTemplateList(0, $type, $orderBy, $pager);
$templateList = $this->doc->getDocTemplateList(0, $type, $orderBy);
$templateList = $this->doc->filterDeletedDocs($templateList);
$templateList = $this->doc->filterPrivDocs($templateList, 'template');
$allModules = $this->doc->getTemplateModules();