Added textarea and checkbox to validation rules

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2021-03-31 14:04:01 -07:00
parent 6a8e761c5e
commit a199c75f5c

View file

@ -359,7 +359,7 @@ class CustomField extends Model
"name" => "required|unique:custom_fields",
"element" => [
"required",
Rule::in(['text', 'listbox'])
Rule::in(['text', 'listbox', 'textara', 'checkbox', 'radio'])
],
'format' => [
Rule::in(array_merge(array_keys(CustomField::PREDEFINED_FORMATS), CustomField::PREDEFINED_FORMATS))