* code for task #2236.

This commit is contained in:
wangyidong
2015-05-06 11:16:28 +08:00
parent 7006837d1f
commit dca976c86a
3 changed files with 32 additions and 26 deletions
+4 -1
View File
@@ -198,7 +198,10 @@ class tree extends control
$this->view->module = $module;
$this->view->type = $type;
$this->view->users = $this->loadModel('user')->getPairs('noclosed|nodeleted', $module->owner);
if($type == 'story') $this->view->products = $this->loadModel('product')->getPairs();
$showProduct = strpos('story|bug|case', $type) !== false ? true : false;
$this->view->showProduct = $showProduct;
if($showProduct) $this->view->products = $this->loadModel('product')->getPairs();
/* Remove self and childs from the $optionMenu. Because it's parent can't be self or childs. */
$childs = $this->tree->getAllChildId($moduleID);