have sources.push() and dependents.splice() in narrow_values() in their original order

pull/6827/head
Philipp Tessenow 14 years ago
parent f815288c7f
commit 388923f5a2
  1. 2
      assets/javascripts/reporting/filters.js

@ -302,6 +302,7 @@ Reporting.Filters = {
}
});
// if the current filter is inactive, hide dependent - otherwise recurisvely narrow dependent values
sources.push(currentDependent); // Add as last element
dependents.splice(0, 1); // Delete first element
if (selectBox.value == '<<inactive>>') {
Reporting.Filters.value_changed(currentDependent);
@ -312,7 +313,6 @@ Reporting.Filters = {
});
}
else {
sources.push(dependents.first()); // Add as last element
Reporting.Filters.narrow_values(sources, dependents);
}
}

Loading…
Cancel
Save