* 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
+6 -3
View File
@@ -194,13 +194,16 @@ class bugModel extends model
$title = trim($title);
if(empty($title))
{
$this->common->checkFieldEmpty('bug', 'title', $data, $i);
if(dao::isError()) return false;
$canNotEmpty = $this->common->checkFieldEmpty('bug', $data, $i);
if($canNotEmpty)
{
dao::$errors['message'][] = sprintf($this->lang->error->notempty, $this->lang->bug->title);
return false;
}
continue;
}
$bug = new stdClass();
$bug->openedBy = $this->app->user->account;
$bug->openedDate = $now;