+ testcaseModel: skip non-existent fields when insert a testcase into database.

This commit is contained in:
liugang
2023-06-10 14:48:13 +08:00
parent b40c1fec02
commit b23fc73d6c
+1 -1
View File
@@ -41,7 +41,7 @@ class testcaseModel extends model
{
if(empty($case->product)) $this->config->testcase->create->requiredFields = str_replace('story', '', $this->config->testcase->create->requiredFields);
/* Value of story may be showmore. */
$this->dao->insert(TABLE_CASE)->data($case)
$this->dao->insert(TABLE_CASE)->data($case, 'steps,expects,files,labels,stepType,forceNotReview,scriptFile,scriptName')
->autoCheck()
->batchCheck($this->config->testcase->create->requiredFields, 'notempty')
->checkFlow()