From f574524f3fd415d1362e290c0f56af1affcd961b Mon Sep 17 00:00:00 2001 From: holan20180123 <56391770@qq.com> Date: Fri, 17 Jul 2020 17:19:12 +0800 Subject: [PATCH] * Finish task #7407. --- module/testcase/control.php | 4 +++- module/testcase/view/edit.html.php | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/module/testcase/control.php b/module/testcase/control.php index 47bb7ff715..4d24fe0e11 100644 --- a/module/testcase/control.php +++ b/module/testcase/control.php @@ -655,7 +655,8 @@ class testcase extends control $this->view->moduleOptionMenu = $moduleOptionMenu; $this->view->stories = $this->story->getProductStoryPairs($productID, $case->branch); } - if($this->testcase->forceNotReview()) unset($this->lang->testcase->statusList['wait']); + $forceNotReview = $this->testcase->forceNotReview(); + if($forceNotReview) unset($this->lang->testcase->statusList['wait']); $position[] = $this->lang->testcase->common; $position[] = $this->lang->testcase->edit; @@ -666,6 +667,7 @@ class testcase extends control $this->view->case = $case; $this->view->actions = $this->loadModel('action')->getList('case', $caseID); $this->view->isLibCase = $isLibCase; + $this->view->forceNotReview = $forceNotReview; $this->display(); } diff --git a/module/testcase/view/edit.html.php b/module/testcase/view/edit.html.php index fc8c412a9c..5535136529 100644 --- a/module/testcase/view/edit.html.php +++ b/module/testcase/view/edit.html.php @@ -213,7 +213,11 @@ testcase->status;?> + status == 'wait'):?> + testcase->statusList[$case->status];?> + testcase->statusList, $case->status, "class='form-control chosen'");?> + testcase->keywords;?>