From 85c8e84c7910c30f535a45ce0d47e26df6fe8c2f Mon Sep 17 00:00:00 2001 From: xieqiyu Date: Tue, 15 Nov 2022 15:56:34 +0800 Subject: [PATCH] * Fix bug#29808. --- module/tree/control.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/module/tree/control.php b/module/tree/control.php index 769bc0a4f6..1041211554 100644 --- a/module/tree/control.php +++ b/module/tree/control.php @@ -400,15 +400,16 @@ class tree extends control $this->view->branch = $branch; $this->view->users = $this->loadModel('user')->getPairs('noclosed|nodeleted', $module->owner); - $showProduct = strpos('story|bug|case', $type) !== false ? true : false; - $this->view->showProduct = $showProduct; + $showProduct = strpos('story|bug|case', $type) !== false ? true : false; if($showProduct) { $product = $this->loadModel('product')->getById($module->root); if($product->type != 'normal') $this->view->branches = $this->loadModel('branch')->getPairs($module->root, 'withClosed'); $this->view->product = $product; $this->view->products = $this->product->getPairs('', $product->program); + if($product->shadow) $showProduct = false; } + $this->view->showProduct = $showProduct; /* Remove self and childs from the $optionMenu. Because it's parent can't be self or childs. */ $childs = $this->tree->getAllChildId($moduleID);