only activate_dependents if there's actually something selected

pull/6827/head
Markus Kahl 13 years ago
parent f35d186a74
commit f7b5373f8a
  1. 4
      assets/javascripts/reporting/restore_query.js

@ -38,7 +38,9 @@ Reporting.RestoreQuery = {
Reporting.Filters.select_values(selectBox, selected_values); Reporting.Filters.select_values(selectBox, selected_values);
Reporting.Filters.value_changed(filter_name); Reporting.Filters.value_changed(filter_name);
} }
Reporting.Filters.activate_dependents(selectBox, activateNext); if (selectBox.getValue() !== '<<inactive>>') {
Reporting.Filters.activate_dependents(selectBox, activateNext);
}
}); });
}, },

Loading…
Cancel
Save