From fa3a7a318c2224ce46c2a840c91adf054f685dc3 Mon Sep 17 00:00:00 2001 From: sunjun Date: Thu, 16 Jun 2022 09:04:42 +0000 Subject: [PATCH 1/2] fixbug_php --- module/product/control.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/module/product/control.php b/module/product/control.php index 35aa4b316f..f83e74cbb2 100644 --- a/module/product/control.php +++ b/module/product/control.php @@ -1258,8 +1258,7 @@ class product extends control 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(); - array_multisort(array_column($productLines, 'order'), SORT_ASC, $productLines); + $productLines = $this->dao->select('*')->from(TABLE_MODULE)->where('type')->eq('line')->andWhere('deleted')->eq(0)->orderBy('order asc')->fetchAll(); $programLines = array(); foreach($productLines as $index => $productLine) From 67dbc57ea82de0830972c6ddad58af6a6c949126 Mon Sep 17 00:00:00 2001 From: sunjun Date: Thu, 16 Jun 2022 09:13:03 +0000 Subject: [PATCH 2/2] fixbug_php --- module/product/control.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/product/control.php b/module/product/control.php index f83e74cbb2..fb753532a2 100644 --- a/module/product/control.php +++ b/module/product/control.php @@ -1258,7 +1258,7 @@ class product extends control 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 asc')->fetchAll(); + $productLines = $this->dao->select('*')->from(TABLE_MODULE)->where('type')->eq('line')->andWhere('deleted')->eq(0)->orderBy('`order` asc')->fetchAll(); $programLines = array(); foreach($productLines as $index => $productLine)