* fix bug: can not get queryID when browseType is 'bySearch'.

This commit is contained in:
chenfeiCF
2016-03-15 11:55:15 +08:00
parent cf4e151f10
commit b7ba4d4a38
2 changed files with 2 additions and 2 deletions

View File

@@ -898,7 +898,7 @@ class bug extends control
/* Get bug and queryID. */
$bug = $this->bug->getById($bugID);
$queryID = ($browseType == 'bysearch') ? (int)$param : 0;
$queryID = ($browseType == 'bySearch') ? (int)$param : 0;
/* Set the menu. */
$this->bug->setMenu($this->products, $bug->product, $bug->branch);

View File

@@ -640,7 +640,7 @@ class testcase extends control
/* Get case and queryID. */
$case = $this->testcase->getById($caseID);
$queryID = ($browseType == 'bysearch') ? (int)$param : 0;
$queryID = ($browseType == 'bySearch') ? (int)$param : 0;
/* Set menu. */
$this->testcase->setMenu($this->products, $case->product, $case->branch);