pull/9691/head
ulferts 3 years ago
parent 80718153d7
commit 6682b73313
No known key found for this signature in database
GPG Key ID: A205708DE1284017
  1. 2
      app/models/queries/filters/base.rb

@ -196,7 +196,7 @@ class Queries::Filters::Base
end
def validate_presence_of_values
if operator_strategy && operator_strategy.requires_value? && (values.nil? || values.reject(&:blank?).empty?)
if operator_strategy&.requires_value? && (values.nil? || values.reject(&:blank?).empty?)
errors.add(:values, I18n.t('activerecord.errors.messages.blank'))
end
end

Loading…
Cancel
Save