summaryrefslogtreecommitdiffstats
path: root/app/models/custom_field.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/custom_field.rb')
-rw-r--r--app/models/custom_field.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/custom_field.rb b/app/models/custom_field.rb
index 136a336ed..ec8c5de8d 100644
--- a/app/models/custom_field.rb
+++ b/app/models/custom_field.rb
@@ -301,7 +301,7 @@ class CustomField < ApplicationRecord
unless errs.any?
if value.is_a?(Array)
- if !multiple?
+ unless multiple?
errs << ::I18n.t('activerecord.errors.messages.invalid')
end
if is_required? && value.detect(&:present?).nil?