mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-24 21:24:13 -08:00
Fixed validation to include textarea
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
cb1a95a530
commit
618e4439e2
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue