From 2ceee23cfe645cbd3442362cb2aaa718fae79b9b Mon Sep 17 00:00:00 2001 From: Philipp Tessenow Date: Mon, 20 Jun 2011 16:03:58 +0200 Subject: [PATCH] do not try to resolve dependents when there is no dependent --- assets/javascripts/reporting/filters.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/assets/javascripts/reporting/filters.js b/assets/javascripts/reporting/filters.js index 235e681f0b..77d2ed0877 100644 --- a/assets/javascripts/reporting/filters.js +++ b/assets/javascripts/reporting/filters.js @@ -280,6 +280,9 @@ Reporting.Filters = { all_dependents = Reporting.Filters.get_dependents(selectBox); next_dependents = Reporting.Filters.get_dependents(selectBox, false); dependent = Reporting.Filters.which_dependent_shall_i_take(source, next_dependents); + if (!dependent) { + return; + } active_filters = Reporting.Filters.visible_filters(); if (!active_filters.include(dependent)) {