* Code for task#54463. Modify review code.

This commit is contained in:
xieqiyu
2022-05-20 14:03:05 +08:00
parent 1c06ae03f1
commit 063fba9ddf
3 changed files with 17 additions and 2 deletions
+13
View File
@@ -1225,6 +1225,19 @@ class testcaseModel extends model
$branch = (int)$branch;
$data = fixer::input('post')->get();
$steps = $data->desc;
foreach($data->expect as $key => $expects)
{
foreach($expects as $exportID => $value)
{
if(!empty($value) and (!isset($steps[$key][$exportID]) or empty($steps[$key][$exportID])))
{
dao::$errors = sprintf($this->lang->testcase->whichLine, $key) . sprintf($this->lang->testcase->stepsEmpty, $exportID);
return false;
}
}
}
if(!empty($_POST['id']))
{
$oldSteps = $this->dao->select('t2.*')->from(TABLE_CASE)->alias('t1')