From 18e743c4ee4304d6e8c742cbc64028cb31eab2d2 Mon Sep 17 00:00:00 2001 From: wangyidong Date: Fri, 12 Mar 2021 15:49:48 +0800 Subject: [PATCH 1/6] * fix bug for create bug. --- module/bug/control.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/module/bug/control.php b/module/bug/control.php index c38d2c8be3..13d7605059 100644 --- a/module/bug/control.php +++ b/module/bug/control.php @@ -472,8 +472,13 @@ class bug extends control $moduleOptionMenu = $this->tree->getOptionMenu($productID, $viewType = 'bug', $startModuleID = 0, $branch); if(empty($moduleOptionMenu)) die(js::locate(helper::createLink('tree', 'browse', "productID=$productID&view=story"))); - $productList = $this->product->getOrderedProducts('all', 40, $this->projectID); - foreach($productList as $product) $products[$product->id] = $product->name; + $products = $this->products; + if($projectID) + { + $products = array(); + $productList = $this->product->getOrderedProducts('all', 40, $projectID); + foreach($productList as $product) $products[$product->id] = $product->name; + } /* Set custom. */ foreach(explode(',', $this->config->bug->list->customCreateFields) as $field) $customFields[$field] = $this->lang->bug->$field; From 233335ff99c2c02bd13757d4ff6fb3290a29d4f8 Mon Sep 17 00:00:00 2001 From: qiyu-xie Date: Mon, 15 Mar 2021 09:45:11 +0800 Subject: [PATCH 2/6] * Modify the problem of the left tree list flashing when changing the execution list label. --- module/execution/view/all.html.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/execution/view/all.html.php b/module/execution/view/all.html.php index 5d0872c765..4940fb4365 100644 --- a/module/execution/view/all.html.php +++ b/module/execution/view/all.html.php @@ -44,7 +44,7 @@ createLink('execution', 'create'), " " . ($from == 'execution' ? $lang->execution->createExec : $lang->execution->create), '', "class='btn btn-primary'");?> -
+