From 977a81d359a4b50f7d819b86deb6e2308b147bee Mon Sep 17 00:00:00 2001 From: sunjun Date: Thu, 16 Jun 2022 06:31:49 +0000 Subject: [PATCH] fixbug_sunjun_23810 --- 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 fcca633574..35aa4b316f 100644 --- a/module/product/control.php +++ b/module/product/control.php @@ -1255,6 +1255,7 @@ class product extends control $pager = new pager($recTotal, $recPerPage, $pageID); /* Process product structure. */ + if($this->config->systemMode == 'classic' and $orderBy == 'program_asc') $orderBy = 'order_desc'; $productStats = $this->product->getStats($orderBy, $pager, $browseType, '', 'story', '', $queryID); $productStructure = $this->product->statisticProgram($productStats); $productLines = $this->dao->select('*')->from(TABLE_MODULE)->where('type')->eq('line')->andWhere('deleted')->eq(0)->orderBy('`order`')->fetchAll(); @@ -1267,7 +1268,7 @@ class product extends control $programLines[$productLine->root][$productLine->id] = $productLine->name; } - $actionURL = $this->createLink('product', 'all', "browseType=bySearch&orderBy=order_asc&queryID=myQueryID"); + $actionURL = $this->createLink('product', 'all', "browseType=bySearch&orderBy=order_desc&queryID=myQueryID"); $this->product->buildProductSearchForm($param, $actionURL); $this->view->title = $this->lang->product->common;