+ testcaseModel: auto check when update a scene.

This commit is contained in:
liugang
2023-09-05 15:08:12 +08:00
parent 762cddc277
commit 287c4c6d74
+1
View File
@@ -2605,6 +2605,7 @@ class testcaseModel extends model
$oldScene = $this->getSceneByID($sceneID);
$this->dao->update(TABLE_SCENE)->data($scene)
->autoCheck()
->batchCheck($this->config->testcase->editscene->requiredFields, 'notempty')
->check('title', 'unique', "product = '{$scene->product}' AND id != '{$sceneID}'")
->where('id')->eq($sceneID)