* Fix bug #30816.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user