* finish task #6650.

This commit is contained in:
wangyidong
2019-12-05 09:13:32 +08:00
parent a4cf41780c
commit 3d68e30c67
3 changed files with 44 additions and 4 deletions
+7 -1
View File
@@ -274,7 +274,13 @@ class tree extends control
$showProduct = strpos('story|bug|case', $type) !== false ? true : false;
$this->view->showProduct = $showProduct;
if($showProduct) $this->view->products = $this->loadModel('product')->getPairs();
if($showProduct)
{
$product = $this->loadModel('product')->getById($module->root);
if($product->type != 'normal') $this->view->branches = $this->loadModel('branch')->getPairs($module->root);
$this->view->product = $product;
$this->view->products = $this->product->getPairs();
}
/* Remove self and childs from the $optionMenu. Because it's parent can't be self or childs. */
$childs = $this->tree->getAllChildId($moduleID);