Merge branch 'sprint/tianshujie_fixbug' into 'master'

* Fix bug #23358.

See merge request easycorp/zentaopms!3768
This commit is contained in:
李玉春
2022-06-07 06:49:05 +00:00

View File

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