From b7ba4d4a388b369a457e416c95dbd19baa9eea4d Mon Sep 17 00:00:00 2001 From: chenfeiCF Date: Tue, 15 Mar 2016 11:55:15 +0800 Subject: [PATCH] * fix bug: can not get queryID when browseType is 'bySearch'. --- module/bug/control.php | 2 +- module/testcase/control.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/module/bug/control.php b/module/bug/control.php index dc92d02d8d..86d9d88bbf 100644 --- a/module/bug/control.php +++ b/module/bug/control.php @@ -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); diff --git a/module/testcase/control.php b/module/testcase/control.php index bf7bf5c663..6ce084a754 100644 --- a/module/testcase/control.php +++ b/module/testcase/control.php @@ -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);