diff --git a/module/block/view/dashboard.html.php b/module/block/view/dashboard.html.php index b45748a8da..8d12c4cb14 100644 --- a/module/block/view/dashboard.html.php +++ b/module/block/view/dashboard.html.php @@ -57,7 +57,7 @@ $useGuest = $this->app->user->account == 'guest'; config.ordersSaved = 'block->ordersSaved; ?>'; config.confirmRemoveBlock = 'block->confirmRemoveBlock; ?>'; var module = ''; -var useGuest = ; +var useGuest = ; getExtViewFile(__FILE__)){include $extView; return helper::cd();}?> diff --git a/module/product/model.php b/module/product/model.php index 7471a67387..cd3f5895fd 100644 --- a/module/product/model.php +++ b/module/product/model.php @@ -96,6 +96,11 @@ class productModel extends model if($productID == 0 and $this->cookie->lastProduct) $this->session->set('product', (int)$this->cookie->lastProduct); if($productID == 0 and $this->session->product == '') $this->session->set('product', key($products)); if(!isset($products[$this->session->product])) $this->session->set('product', key($products)); + if($this->cookie->preProductID != $productID) + { + $this->cookie->set('preBranch', 0); + setcookie('preBranch', 0, $this->config->cookieLife, $this->config->webRoot); + } return $this->session->product; } @@ -778,7 +783,7 @@ class productModel extends model public function getProductLink($module, $method, $extra, $branch = false) { $link = ''; - if(strpos('product,roadmap,bug,testcase,testtask,story', $module) !== false) + if(strpos('product,roadmap,bug,testcase,testtask,story,qa', $module) !== false) { if($module == 'product' && $method == 'project') { @@ -788,13 +793,13 @@ class productModel extends model { $link = helper::createLink($module, $method, "productID=%s"); } - elseif($module == 'product' && $method == 'index') + elseif($module == 'qa' && $method == 'index') { - $link = helper::createLink($module, $method, "locate=no&productID=%s"); + $link = helper::createLink('bug', 'browse', "productID=%s" . ($branch ? "&branch=%s" : '')); } - elseif($module == 'product' && $method == 'browse') + elseif($module == 'product' && ($method == 'browse' or $method == 'index' or $method == 'all')) { - $link = helper::createLink($module, $method, "productID=%s" . ($branch ? "&branch=%s" : '')); + $link = helper::createLink($module, 'browse', "productID=%s" . ($branch ? "&branch=%s" : '')); } else { diff --git a/module/product/view/ajaxgetdropmenu.html.php b/module/product/view/ajaxgetdropmenu.html.php index 25cc0eecfc..c6802affae 100644 --- a/module/product/view/ajaxgetdropmenu.html.php +++ b/module/product/view/ajaxgetdropmenu.html.php @@ -39,7 +39,7 @@