Fixes typo that doesn't accepts 'textarea' as custom field type element. (#9387)

This commit is contained in:
Ivan Nieto Vivanco 2021-04-01 19:23:05 -06:00 committed by GitHub
parent 6f4215cfac
commit eb0ae74ef8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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