do not try to resolve dependents when there is no dependent

pull/6827/head
Philipp Tessenow 14 years ago
parent 58dfbbb9fd
commit 2ceee23cfe
  1. 3
      assets/javascripts/reporting/filters.js

@ -280,6 +280,9 @@ Reporting.Filters = {
all_dependents = Reporting.Filters.get_dependents(selectBox); all_dependents = Reporting.Filters.get_dependents(selectBox);
next_dependents = Reporting.Filters.get_dependents(selectBox, false); next_dependents = Reporting.Filters.get_dependents(selectBox, false);
dependent = Reporting.Filters.which_dependent_shall_i_take(source, next_dependents); dependent = Reporting.Filters.which_dependent_shall_i_take(source, next_dependents);
if (!dependent) {
return;
}
active_filters = Reporting.Filters.visible_filters(); active_filters = Reporting.Filters.visible_filters();
if (!active_filters.include(dependent)) { if (!active_filters.include(dependent)) {

Loading…
Cancel
Save