From 7bd5cbac2bd4b2633f1c03ae73bba87f430ffe37 Mon Sep 17 00:00:00 2001 From: xieqiyu Date: Sun, 27 Apr 2025 15:16:09 +0800 Subject: [PATCH] * [bug#61909] Query all template in list. --- module/doc/control.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/module/doc/control.php b/module/doc/control.php index dddf115465..713a77fd18 100755 --- a/module/doc/control.php +++ b/module/doc/control.php @@ -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();