* Remove useless function.

* Rename forceNotReview to needReview.
This commit is contained in:
daitingting
2023-09-01 03:25:55 +00:00
parent 6514d6e830
commit acddaed1d0
4 changed files with 13 additions and 25 deletions
+2 -2
View File
@@ -44,7 +44,7 @@ class testcaseModel extends model
/* 插入测试用例。 */
/* Insert testcase. */
$this->dao->insert(TABLE_CASE)->data($case, 'steps,expects,files,labels,stepType,forceNotReview,scriptFile,scriptName')
$this->dao->insert(TABLE_CASE)->data($case, 'steps,expects,files,labels,stepType,needReview,scriptFile,scriptName')
->autoCheck()
->batchCheck($this->config->testcase->create->requiredFields, 'notempty')
->checkFlow()
@@ -2329,7 +2329,7 @@ class testcaseModel extends model
{
if($methodName == 'create')
{
if($this->forceNotReview() || $this->post->forceNotReview) return 'normal';
if($this->forceNotReview() || !$this->post->needReview) return 'normal';
return 'wait';
}