* Finish task #7407.

This commit is contained in:
holan20180123
2020-07-17 17:19:12 +08:00
parent 4cb09a3c0d
commit f574524f3f
2 changed files with 7 additions and 1 deletions
+3 -1
View File
@@ -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();
}
+4
View File
@@ -213,7 +213,11 @@
</tr>
<tr>
<th><?php echo $lang->testcase->status;?></th>
<?php if(!$forceNotReview and $case->status == 'wait'):?>
<td><?php echo $lang->testcase->statusList[$case->status];?>
<?php else: ?>
<td><?php echo html::select('status', (array)$lang->testcase->statusList, $case->status, "class='form-control chosen'");?></td>
<?php endif; ?>
</tr>
<tr>
<th><?php echo $lang->testcase->keywords;?></th>