diff --git a/module/bug/control.php b/module/bug/control.php index 673201721f..89e0574a37 100755 --- a/module/bug/control.php +++ b/module/bug/control.php @@ -126,7 +126,7 @@ class bug extends control $queryID = ($browseType == 'bysearch') ? (int)$param : 0; /* Set session. */ - $this->session->set('bugList', $this->app->getURI(true), 'qa'); + $this->session->set('bugList', $this->app->getURI(true) . "#app={$this->app->tab}", 'qa'); /* Set moduleTree. */ if($browseType == '') diff --git a/module/execution/control.php b/module/execution/control.php index 79f17e3e4a..27a71cf6e5 100644 --- a/module/execution/control.php +++ b/module/execution/control.php @@ -883,7 +883,7 @@ class execution extends control $this->loadModel('datatable'); /* Save session. */ - $this->session->set('bugList', $this->app->getURI(true), 'execution'); + $this->session->set('bugList', $this->app->getURI(true), 'qa'); $type = strtolower($type); $queryID = ($type == 'bysearch') ? (int)$param : 0; @@ -893,7 +893,7 @@ class execution extends control $branchID = isset($products[$productID]) ? current($products[$productID]->branches) : 0; $productPairs = array('0' => $this->lang->product->all); - foreach($products as $product) $productPairs[$product->id] = $product->name; + foreach($products as $productData) $productPairs[$productData->id] = $productData->name; $this->lang->modulePageNav = $this->product->select($productPairs, $productID, 'execution', 'bug', $executionID, $branchID, 0, '', false); /* Header and position. */ @@ -922,6 +922,7 @@ class execution extends control $actionURL = $this->createLink('execution', 'bug', "executionID=$executionID&productID=$productID&orderBy=$orderBy&build=$build&type=bysearch&queryID=myQueryID"); $this->execution->buildBugSearchForm($products, $queryID, $actionURL); + $product = $this->loadModel('product')->getById($productID); $showBranch = false; $branchOption = array(); $branchTagOption = array();