From 4be2d39fc47b8759a77625278ee4926481943899 Mon Sep 17 00:00:00 2001 From: hufangzhou <746775970@qq.com> Date: Wed, 10 Mar 2021 10:37:14 +0800 Subject: [PATCH 1/3] * Fix a bug. --- module/bug/control.php | 2 +- module/caselib/control.php | 2 +- module/testcase/control.php | 2 +- module/testreport/control.php | 2 +- module/testsuite/control.php | 2 +- module/testtask/control.php | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/module/bug/control.php b/module/bug/control.php index d7446de714..6e6348c587 100644 --- a/module/bug/control.php +++ b/module/bug/control.php @@ -47,7 +47,7 @@ class bug extends control $this->loadModel('task'); /* Set bug menu group. */ - $this->projectID = isset($_GET['project']) ? $_GET['project'] : 0; + $this->projectID = isset($_GET['PRJ']) ? $_GET['PRJ'] : 0; if(!$this->projectID) { $this->app->loadConfig('qa'); diff --git a/module/caselib/control.php b/module/caselib/control.php index 9ae755c498..3795d7bd97 100644 --- a/module/caselib/control.php +++ b/module/caselib/control.php @@ -32,7 +32,7 @@ class caselib extends control parent::__construct($moduleName, $methodName); /* Set testtask menu group. */ - $this->projectID = isset($_GET['project']) ? $_GET['project'] : 0; + $this->projectID = isset($_GET['PRJ']) ? $_GET['PRJ'] : 0; if(!$this->projectID) { $this->app->loadConfig('qa'); diff --git a/module/testcase/control.php b/module/testcase/control.php index 788439648e..29bf802202 100644 --- a/module/testcase/control.php +++ b/module/testcase/control.php @@ -41,7 +41,7 @@ class testcase extends control $this->loadModel('user'); /* Set test case menu group. */ - $this->projectID = isset($_GET['project']) ? $_GET['project'] : 0; + $this->projectID = isset($_GET['PRJ']) ? $_GET['PRJ'] : 0; if(!$this->projectID) { $this->app->loadConfig('qa'); diff --git a/module/testreport/control.php b/module/testreport/control.php index 35b61ff0f5..9c19c3a3d5 100644 --- a/module/testreport/control.php +++ b/module/testreport/control.php @@ -37,7 +37,7 @@ class testreport extends control $this->app->loadLang('report'); /* Set testreport menu group. */ - $this->projectID = isset($_GET['project']) ? $_GET['project'] : 0; + $this->projectID = isset($_GET['PRJ']) ? $_GET['PRJ'] : 0; if(!$this->projectID) { $this->app->loadConfig('qa'); diff --git a/module/testsuite/control.php b/module/testsuite/control.php index 845cae0030..e5748e0109 100644 --- a/module/testsuite/control.php +++ b/module/testsuite/control.php @@ -32,7 +32,7 @@ class testsuite extends control parent::__construct($moduleName, $methodName); /* Set testtask menu group. */ - $this->projectID = isset($_GET['project']) ? $_GET['project'] : 0; + $this->projectID = isset($_GET['PRJ']) ? $_GET['PRJ'] : 0; if(!$this->projectID) { $this->app->loadConfig('qa'); diff --git a/module/testtask/control.php b/module/testtask/control.php index 52fae1f206..8681a803a4 100644 --- a/module/testtask/control.php +++ b/module/testtask/control.php @@ -38,7 +38,7 @@ class testtask extends control parent::__construct($moduleName, $methodName); /* Set testtask menu group. */ - $this->projectID = isset($_GET['project']) ? $_GET['project'] : 0; + $this->projectID = isset($_GET['PRJ']) ? $_GET['PRJ'] : 0; if(!$this->projectID) { $this->app->loadConfig('qa'); From 1b471ee51969867e440d866c60bd0b278be58fa0 Mon Sep 17 00:00:00 2001 From: hufangzhou <746775970@qq.com> Date: Wed, 10 Mar 2021 10:44:05 +0800 Subject: [PATCH 2/3] * Adjust the code. --- module/story/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/story/model.php b/module/story/model.php index d9c7db408a..bb221ea74b 100644 --- a/module/story/model.php +++ b/module/story/model.php @@ -2374,7 +2374,7 @@ class storyModel extends model ->beginIF($excludeStories)->andWhere('t2.id')->notIN($excludeStories)->fi() ->beginIF($execution->type == 'project') ->beginIF(!empty($productID))->andWhere('t1.product')->eq($productID) - ->andWhere('t2.branch')->eq($branch)->fi() + ->andWhere('t2.branch')->eq($branch) ->beginIF(isset($statusFeatureList) and in_array($type, array_keys($statusFeatureList)))->andWhere('t2.status')->eq($type)->fi() ->beginIF(isset($otherFeatureList) and in_array($type, array_keys($otherFeatureList)))->andWhere('t2.' . substr($type, 0, -2))->eq($this->app->user->account)->fi() ->beginIF($type == 'unclosed')->andWhere('t2.status')->in(array_keys($unclosedStatus))->fi() From 05bcdae622ae07a8431806022a447e5e194d4a6b Mon Sep 17 00:00:00 2001 From: hufangzhou <746775970@qq.com> Date: Wed, 10 Mar 2021 11:04:52 +0800 Subject: [PATCH 3/3] * Fix a bug. --- module/product/view/browse.html.php | 2 +- module/story/model.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/module/product/view/browse.html.php b/module/product/view/browse.html.php index 1982955bcc..7930134d2e 100644 --- a/module/product/view/browse.html.php +++ b/module/product/view/browse.html.php @@ -54,7 +54,7 @@ $isProjectStory = $this->app->rawModule == 'projectstory'; echo "