From a199c75f5c27fa234e009f464d7e882403966edd Mon Sep 17 00:00:00 2001 From: snipe Date: Wed, 31 Mar 2021 14:04:01 -0700 Subject: [PATCH] Added textarea and checkbox to validation rules Signed-off-by: snipe --- app/Models/CustomField.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/CustomField.php b/app/Models/CustomField.php index 5e311a583a..c144356609 100644 --- a/app/Models/CustomField.php +++ b/app/Models/CustomField.php @@ -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))