diff --git a/app/models/yeti/cdrs_filter.rb b/app/models/yeti/cdrs_filter.rb index 2d1fd7b38..1fb431cf5 100644 --- a/app/models/yeti/cdrs_filter.rb +++ b/app/models/yeti/cdrs_filter.rb @@ -57,7 +57,12 @@ def generate_filter EQ_FILTERABLE.each do |k| %i[eq equals].each do |suff| - filter.add_filter { |cdr| cdr[:"#{k}"].to_i == search_param(k, suff).to_i } if searchable?(k, suff) + search_values = search_param(k, suff) + next unless searchable?(k, suff) + + search_values.each do |value| + filter.add_filter { |cdr| cdr[:"#{k}"].to_i == value.to_i } + end end end STARTS_WITH_FILTERABLE.each do |k|