diff --git a/module/execution/control.php b/module/execution/control.php index e445311966..d99c5acd37 100644 --- a/module/execution/control.php +++ b/module/execution/control.php @@ -827,6 +827,7 @@ class execution extends control $this->view->orderBy = $orderBy; $this->view->type = $this->session->executionStoryBrowseType; $this->view->param = $param; + $this->view->isAllProduct = ($this->cookie->storyProductParam or $this->cookie->storyModuleParam or $this->cookie->storyBranchParam) ? false : true; $this->view->moduleTree = $this->loadModel('tree')->getProjectStoryTreeMenu($executionID, 0, array('treeModel', 'createStoryLink')); $this->view->modulePairs = $modulePairs; $this->view->tabID = 'story'; diff --git a/module/execution/view/story.html.php b/module/execution/view/story.html.php index a48e647eae..8a7c66e1d0 100644 --- a/module/execution/view/story.html.php +++ b/module/execution/view/story.html.php @@ -86,7 +86,7 @@ if($common::hasPriv('story', 'create') and common::hasPriv('story', 'batchCreate')) { - if($param != 0 || count($products) == 1) echo ""; + if(!($isAllProduct and count($products) > 1)) echo ""; echo "