Fixed validation to include textarea

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2021-03-31 14:02:10 -07:00
parent cb1a95a530
commit 618e4439e2

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))