* Code for task#66955.

This commit is contained in:
xieqiyu
2022-09-01 10:47:58 +08:00
parent 2bbb4df770
commit d552aa67f9
9 changed files with 35 additions and 26 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ $config->testcase->custom->createFields = $config->testcase->customCreateFi
$config->testcase->custom->batchCreateFields = 'module,story,%s';
$config->testcase->custom->batchEditFields = 'branch,module,stage,status,pri,story';
$config->testcase->excludeCheckFileds = 'pri,type,stage';
$config->testcase->excludeCheckFileds = ',pri,type,stage,';
global $lang;
$config->testcase->search['module'] = 'testcase';
+6 -2
View File
@@ -157,8 +157,12 @@ class testcaseModel extends model
{
if(empty($title))
{
$result = $this->common->checkFieldEmpty('testcase', 'title', $cases, $i);
if(dao::isError()) return false;
$canNotEmpty = $this->common->checkFieldEmpty('testcase', $cases, $i);
if($canNotEmpty)
{
dao::$errors['message'][] = sprintf($this->lang->error->notempty, $this->lang->testcase->title);
return false;
}
continue;
}