From 43f80cfc49134396ca97d5264cca6ca2574f5188 Mon Sep 17 00:00:00 2001 From: tianshujie98 Date: Tue, 10 Aug 2021 13:14:03 +0800 Subject: [PATCH] * Finish task #41228. --- module/product/model.php | 1 + 1 file changed, 1 insertion(+) diff --git a/module/product/model.php b/module/product/model.php index ef6dccf915..e15d11b025 100644 --- a/module/product/model.php +++ b/module/product/model.php @@ -887,6 +887,7 @@ class productModel extends model ->beginIF(!$this->app->user->admin)->andWhere('t2.id')->in($this->app->user->view->projects)->fi() ->beginIF($branch)->andWhere('t1.branch')->in($branch)->fi() ->andWhere('t2.deleted')->eq('0') + ->orderBy('order_asc') ->fetchPairs('id', 'name'); if($appendProject) $projects += $this->dao->select('id,name')->from(TABLE_PROJECT)->where('id')->in($appendProject)->fetchPairs('id', 'name');