fix filters.js bug - under certain circumstances too many filters were selected as source for narrowing values

pull/6827/head
Philipp Tessenow 14 years ago
parent 48629bc4fa
commit 4aa20a8e77
  1. 2
      assets/javascripts/reporting/filters.js

@ -293,7 +293,7 @@ Reporting.Filters = {
// return an array of all filters that depend on the given filter plus the given filter
dependent_for: function(field) {
var deps = $$('.filters-select[data-all-dependents]').findAll(function(selectBox) {
return Reporting.Filters.get_dependents(selectBox).include(field)
return selectBox.up('tr').visible() && Reporting.Filters.get_dependents(selectBox).include(field)
}).map(function(selectBox) {
return selectBox.getAttribute("data-filter-name");
});

Loading…
Cancel
Save