From abcbe76d24ad7e1964a57b9939bcfc08c6d1e629 Mon Sep 17 00:00:00 2001 From: liuhong Date: Wed, 3 Aug 2022 01:40:55 +0000 Subject: [PATCH 1/2] *Fix bug 24281 --- module/product/control.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/module/product/control.php b/module/product/control.php index 66b9a42774..ef77b849aa 100644 --- a/module/product/control.php +++ b/module/product/control.php @@ -1262,6 +1262,7 @@ class product extends control $this->app->loadClass('pager', $static = true); $pager = new pager($recTotal, $recPerPage, $pageID); + /* Process product structure. */ if($this->config->systemMode == 'classic' and $orderBy == 'program_asc') $orderBy = 'order_asc'; $productStats = $this->product->getStats($orderBy, $pager, $browseType, '', 'story', '', $queryID); @@ -1281,7 +1282,7 @@ class product extends control $this->view->title = $this->lang->product->common; $this->view->position[] = $this->lang->product->common; - $this->view->recTotal = count($productStats); + $this->view->recTotal = $pager->recTotal; $this->view->productStats = $productStats; $this->view->productStructure = $productStructure; $this->view->productLines = $productLines; From 1e6366945d50f1542812c808a888554e23c16c71 Mon Sep 17 00:00:00 2001 From: liuhong Date: Wed, 3 Aug 2022 01:44:41 +0000 Subject: [PATCH 2/2] *Fix bug #24281 --- module/product/control.php | 1 - 1 file changed, 1 deletion(-) diff --git a/module/product/control.php b/module/product/control.php index ef77b849aa..7ed0515586 100644 --- a/module/product/control.php +++ b/module/product/control.php @@ -1262,7 +1262,6 @@ class product extends control $this->app->loadClass('pager', $static = true); $pager = new pager($recTotal, $recPerPage, $pageID); - /* Process product structure. */ if($this->config->systemMode == 'classic' and $orderBy == 'program_asc') $orderBy = 'order_asc'; $productStats = $this->product->getStats($orderBy, $pager, $browseType, '', 'story', '', $queryID);