From ee2d74d99d4c41b50840ab59e0bca6533f528901 Mon Sep 17 00:00:00 2001 From: tianshujie Date: Tue, 7 Jun 2022 14:43:42 +0800 Subject: [PATCH] * Fix bug #23358. --- module/productplan/control.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/module/productplan/control.php b/module/productplan/control.php index 91e1ca7c74..9f1f2335d5 100644 --- a/module/productplan/control.php +++ b/module/productplan/control.php @@ -397,7 +397,8 @@ class productplan extends control if($this->app->getViewType() == 'xhtml') $recPerPage = 10; /* Append id for secend sort. */ - $sort = common::appendOrder($orderBy); + $orderBy = ($type == 'bug' and $orderBy == 'order_desc') ? 'id_desc' : $orderBy; + $sort = common::appendOrder($orderBy); $this->commonAction($plan->product, $plan->branch); $products = $this->product->getProductPairsByProject($this->session->project);