From 4385eab733ff5fbd1adcdc33fc0d8aa5e92a87e3 Mon Sep 17 00:00:00 2001 From: hufangzhou Date: Thu, 9 Jun 2022 16:25:29 +0800 Subject: [PATCH] * Make the order of products in the product drop-down consistent with the product list. --- module/product/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/product/model.php b/module/product/model.php index a97bdbcefb..c7835acc3e 100644 --- a/module/product/model.php +++ b/module/product/model.php @@ -278,7 +278,7 @@ class productModel extends model ->orWhere('t1.createdBy')->eq($this->app->user->account) ->markRight(1) ->fi() - ->orderBy('t1.program_asc,t1.order_asc') + ->orderBy('t2.order_asc, t1.line_desc, t1.order_desc') ->beginIF($limit > 0)->limit($limit)->fi() ->fetchAll('id'); }