diff --git a/module/projectrelease/control.php b/module/projectrelease/control.php index 52c0ec9155..d96de77174 100644 --- a/module/projectrelease/control.php +++ b/module/projectrelease/control.php @@ -472,7 +472,7 @@ class projectrelease extends control $this->config->product->search['params']['plan']['values'] = $this->loadModel('productplan')->getForProducts(array($release->product => $release->product)); $this->config->product->search['params']['module']['values'] = $this->tree->getOptionMenu($release->product, $viewType = 'story', $startModuleID = 0); $this->config->product->search['params']['status'] = array('operator' => '=', 'control' => 'select', 'values' => $this->lang->story->statusList); - if($this->session->currentProductType == 'normal') + if($release->productType == 'normal') { unset($this->config->product->search['fields']['branch']); unset($this->config->product->search['params']['branch']); @@ -592,7 +592,7 @@ class projectrelease extends control $this->config->bug->search['params']['execution']['values'] = $this->loadModel('product')->getExecutionPairsByProduct($release->product, 0, 'id_desc', $release->project); $this->config->bug->search['params']['openedBuild']['values'] = $this->loadModel('build')->getProductBuildPairs($release->product, $branch = 0, $params = ''); $this->config->bug->search['params']['resolvedBuild']['values'] = $this->config->bug->search['params']['openedBuild']['values']; - if($this->session->currentProductType == 'normal') + if($release->productType == 'normal') { unset($this->config->bug->search['fields']['branch']); unset($this->config->bug->search['params']['branch']); diff --git a/module/testtask/control.php b/module/testtask/control.php index bfceb8b358..70fd5cd2d3 100644 --- a/module/testtask/control.php +++ b/module/testtask/control.php @@ -1040,7 +1040,7 @@ class testtask extends control $this->config->testcase->search['params']['module']['values'] = $this->loadModel('tree')->getOptionMenu($productID, $viewType = 'case'); $this->config->testcase->search['actionURL'] = inlink('linkcase', "taskID=$taskID&type=$type¶m=$param"); $this->config->testcase->search['style'] = 'simple'; - if($this->session->currentProductType == 'normal') + if($task->productType == 'normal') { unset($this->config->testcase->search['fields']['branch']); unset($this->config->testcase->search['params']['branch']);