From 54f29108853e8e175662db405f4c1c1dc26e42fa Mon Sep 17 00:00:00 2001 From: hufangzhou Date: Wed, 20 Apr 2022 13:44:23 +0800 Subject: [PATCH] * Fix bug #21875. --- module/product/model.php | 1 + 1 file changed, 1 insertion(+) diff --git a/module/product/model.php b/module/product/model.php index 010ea89847..1222111415 100644 --- a/module/product/model.php +++ b/module/product/model.php @@ -1285,6 +1285,7 @@ class productModel extends model ->beginIF($branch)->andWhere('t1.branch')->in($branch)->fi() ->beginIF(!$this->app->user->admin)->andWhere('t2.id')->in($this->app->user->view->sprints)->fi() ->andWhere('t2.deleted')->eq('0') + ->orderBy('id_desc') ->fetchAll('id'); $projectIdList = array();