*Fix bug 24281

This commit is contained in:
liuhong
2022-08-03 01:40:55 +00:00
parent 65aa0b2eee
commit abcbe76d24
+2 -1
View File
@@ -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;