This commit is contained in:
liuhong
2023-01-13 03:29:21 +00:00
parent aa2a622208
commit fe80314c6a
+5
View File
@@ -603,6 +603,11 @@ class storyModel extends model
if(is_array($story->{$extendField->field})) $story->{$extendField->field} = join(',', $story->{$extendField->field});
$story->{$extendField->field} = htmlSpecialString($story->{$extendField->field});
if(empty($story->{$extendField->field}))
{
dao::$errors[] = sprintf($this->lang->error->notempty, $extendField->name);
return false;
}
}
foreach(explode(',', $this->config->story->create->requiredFields) as $field)