Compare sorted output of allowed values

Otherwise, sort of input is relevant for validity
pull/5635/head
Oliver Günther 7 years ago
parent 55695ed756
commit f273825199
No known key found for this signature in database
GPG Key ID: 88872239EB414F99
  1. 2
      app/models/queries/filters/strategies/huge_list.rb

@ -34,7 +34,7 @@ module Queries::Filters::Strategies
to: :filter
def validate
if allowed_values_subset & values != values
if (allowed_values_subset & values).sort != values.sort
errors.add(:values, :inclusion)
end
end

Loading…
Cancel
Save