diff --git a/module/bug/control.php b/module/bug/control.php index 1ef0d988ce..53bd69e118 100755 --- a/module/bug/control.php +++ b/module/bug/control.php @@ -1304,7 +1304,7 @@ class bug extends control $branchIdList[$bug->product][$bug->branch] = $bug->branch; - if(!isset($modules[$bug->product][$bug->branch])) $modules[$bug->product][$bug->branch] = $modules[$bug->product][0] + $this->tree->getModulesName($bug->module); + if(!isset($modules[$bug->product][$bug->branch]) and isset($modules[$bug->product])) $modules[$bug->product][$bug->branch] = $modules[$bug->product][0] + $this->tree->getModulesName($bug->module); } /* Get assigned to member. */ diff --git a/module/execution/control.php b/module/execution/control.php index 910b2f08cc..2e014c1489 100644 --- a/module/execution/control.php +++ b/module/execution/control.php @@ -977,7 +977,7 @@ class execution extends control $memberPairs = $this->user->processAccountSort($memberPairs); /* Build the search form. */ - $actionURL = $this->createLink('execution', 'bug', "executionID=$executionID&productID=$productID&orderBy=$orderBy&build=$build&type=bysearch&queryID=myQueryID"); + $actionURL = $this->createLink('execution', 'bug', "executionID=$executionID&productID=$productID&branch=$branch&orderBy=$orderBy&build=$build&type=bysearch&queryID=myQueryID"); $this->execution->buildBugSearchForm($products, $queryID, $actionURL); $product = $this->product->getById($productID);