From c778e2d9b124d2f0c70042cb9fbc0ae3ae4d29b7 Mon Sep 17 00:00:00 2001 From: Tim Felgentreff Date: Fri, 28 Jan 2011 14:33:19 +0100 Subject: [PATCH] fix filters typo --- lib/widget/filters.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/widget/filters.rb b/lib/widget/filters.rb index c0410cc47e..06da5d0fcd 100644 --- a/lib/widget/filters.rb +++ b/lib/widget/filters.rb @@ -35,7 +35,7 @@ class Widget::Filters < Widget::Base def render_filters active_filters = @query.filters.select {|f| f.class.display? } engine::Filter.all.collect do |filter| - opts = :id => "tr_#{filter.underscore_name}", :class => "#{filter.underscore_name}" + opts = {:id => "tr_#{filter.underscore_name}", :class => "#{filter.underscore_name}"} active_instance = active_filters.detect {|f| f.class == filter } if active_instance opts[:"data-selected"] = true