From 69d773c34a3fd8ac638d8386ee86ea433802271d Mon Sep 17 00:00:00 2001 From: Philipp Tessenow Date: Thu, 31 Mar 2011 12:12:24 +0200 Subject: [PATCH] when narrowing values create options with their label as label (and not their value) --- assets/javascripts/reporting/filters.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/javascripts/reporting/filters.js b/assets/javascripts/reporting/filters.js index 88a6b7f216..265a23d92a 100644 --- a/assets/javascripts/reporting/filters.js +++ b/assets/javascripts/reporting/filters.js @@ -318,7 +318,7 @@ Reporting.Filters = { var label = ary.first(); var value = ary.last(); // cannot use .innerhtml due to IE wierdness - $(selectBox).insert(new Element('option', {value: value}).update(value.escapeHTML())); + $(selectBox).insert(new Element('option', {value: value}).update(label.escapeHTML())); }); Reporting.Filters.select_values(selectBox, selected); sources.push(currentDependent); // Add as last element