Merge branch 'sprint/169' of https://gitlab.zcorp.cc/easycorp/zentaopms into 169

This commit is contained in:
zhujinyong
2021-10-27 11:06:45 +08:00
28 changed files with 123 additions and 73 deletions
+4 -1
View File
@@ -202,7 +202,10 @@ class bugModel extends model
foreach(explode(',', $this->config->bug->create->requiredFields) as $field)
{
$field = trim($field);
if($field and isset($bug->$field) and empty($bug->$field)) die(js::alert(sprintf($this->lang->error->notempty, $this->lang->bug->$field)));
if($field and empty($bug->$field))
{
die(js::alert(sprintf($this->lang->error->notempty, $this->lang->bug->$field)));
}
}
$bugs[$i] = $bug;