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);