diff options
Diffstat (limited to 'app/models/query.rb')
-rw-r--r-- | app/models/query.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/query.rb b/app/models/query.rb index 152b11cf1..9d5a5c78d 100644 --- a/app/models/query.rb +++ b/app/models/query.rb @@ -501,7 +501,7 @@ class Query < ActiveRecord::Base if has_filter?(field) || !filter.remote options[:values] = filter.values if options[:values] && values_for(field) - missing = Array(values_for(field)).select(&:present?) - options[:values].map(&:last) + missing = Array(values_for(field)).select(&:present?) - options[:values].map{|v| v[1]} if missing.any? && respond_to?(method = "find_#{field}_filter_values") options[:values] += send(method, missing) end |