Defect #17881 ยป 0001-Render-only-issue-filters-which-are-available-in-the.patch
app/views/queries/_filters.html.erb | ||
---|---|---|
7 | 7 |
$(document).ready(function(){ |
8 | 8 |
initFilters(); |
9 | 9 |
<% query.filters.each do |field, options| %> |
10 |
<% next unless query.available_filters.keys.include? field %> |
|
10 | 11 |
addFilter("<%= field %>", <%= raw_json query.operator_for(field) %>, <%= raw_json query.values_for(field) %>); |
11 | 12 |
<% end %> |
12 | 13 |
}); |