From 95ff14e30f98c3ea0e5c4afe4ad7de1ed25dd1a1 Mon Sep 17 00:00:00 2001 From: tianshujie98 Date: Thu, 29 Apr 2021 09:55:03 +0800 Subject: [PATCH 07/10] * Fix bug #12450. --- module/execution/model.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/module/execution/model.php b/module/execution/model.php index 6f2eab0f95..5e4ebdae82 100644 --- a/module/execution/model.php +++ b/module/execution/model.php @@ -1182,6 +1182,10 @@ class executionModel extends model { $link = helper::createLink('execution', $module, "executionID=%s"); } + elseif($module == 'repo') + { + $link = helper::createLink('repo', 'browse', "repoID=0&branchID=&executionID=%s"); + } else { $link = helper::createLink($module, $method, "executionID=%s"); From cf1ca1ad6d4b3b5b0f9f126c14923c1de11dd10c Mon Sep 17 00:00:00 2001 From: tianshujie98 Date: Thu, 29 Apr 2021 10:23:39 +0800 Subject: [PATCH 08/10] * Fix bug #12246. --- module/project/control.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/module/project/control.php b/module/project/control.php index c008174851..817cad57bc 100644 --- a/module/project/control.php +++ b/module/project/control.php @@ -173,6 +173,9 @@ class project extends control { $projectID = $this->project->saveState($projectID, $this->project->getPairsByProgram()); + if($projectID == 0 and common::hasPriv('project', 'create')) $this->locate($this->createLink('project', 'create')); + if($projectID == 0 and !common::hasPriv('project', 'create')) $this->locate($this->createLink('project', 'browse')); + $this->project->setMenu($projectID); $project = $this->project->getByID($projectID); From 19395757fee9316f4b59b53a6b6bbd5a3f7b5229 Mon Sep 17 00:00:00 2001 From: hufangzhou <746775970@qq.com> Date: Thu, 29 Apr 2021 10:27:47 +0800 Subject: [PATCH 09/10] * Fix bug #12451. --- module/testtask/model.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/testtask/model.php b/module/testtask/model.php index 93acd2e789..6d95b453e0 100644 --- a/module/testtask/model.php +++ b/module/testtask/model.php @@ -1130,7 +1130,7 @@ class testtaskModel extends model /* Update testRun's status. */ if(!dao::isError()) { - $runStatus = $caseResult == 'blocked' ? 'blocked' : 'done'; + $runStatus = $caseResult == 'blocked' ? 'blocked' : 'normal'; $this->dao->update(TABLE_TESTRUN) ->set('lastRunResult')->eq($caseResult) ->set('status')->eq($runStatus) @@ -1429,7 +1429,7 @@ class testtaskModel extends model foreach(explode(',', trim($run->stage, ',')) as $stage) echo $this->lang->testcase->stageList[$stage] . '
'; break; case 'status': - echo $caseChanged ? "{$this->lang->testcase->changed}" : $this->processStatus('testtask', $run); + echo $caseChanged ? "{$this->lang->testcase->changed}" : $this->processStatus('testcase', $run); break; case 'precondition': echo $run->precondition; From 44385524fa470bd8d9d0e7920cace6023baa4743 Mon Sep 17 00:00:00 2001 From: tianshujie98 Date: Thu, 29 Apr 2021 10:50:26 +0800 Subject: [PATCH 10/10] * Fix bug #12452. --- module/caselib/model.php | 1 + 1 file changed, 1 insertion(+) diff --git a/module/caselib/model.php b/module/caselib/model.php index 55b27f7336..af1cc74af9 100644 --- a/module/caselib/model.php +++ b/module/caselib/model.php @@ -26,6 +26,7 @@ class caselibModel extends model /* Set case lib menu. */ $products =$this->loadModel('product')->getPairs(); if(!empty($products) and $this->session->product) $this->loadModel('qa')->setMenu($products, $this->session->product); + if(empty($products)) $this->loadModel('qa')->setMenu($products, 0); if($libraries) {