* Code for task#66955.
This commit is contained in:
@@ -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';
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user