Skip to content

Commit

Permalink
fixed bug which prevented ajax filters from working
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott Miller committed Nov 8, 2009
1 parent 42b1f6a commit 55f311e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/crm_tags/controller_hooks.rb
Expand Up @@ -29,7 +29,7 @@ class ControllerHooks < FatFreeCRM::Callback::Base
define_method :"get_#{klass.to_s.tableize}" do |controller, context|
session, params, search_string = controller.session, controller.params, controller.send(:current_query)
query, tags = parse_query_and_tags(search_string)
filter = :"filter_by_#{klass.to_s.singularize}_status"
filter = :"filter_by_#{klass.to_s.downcase.singularize}_status"

if session[filter] # With filters...
filtered = session[filter].split(",")
Expand Down Expand Up @@ -94,4 +94,4 @@ def parse_query_and_tags(search_string)
[ query.join(" "), tags.join(", ") ]
end

end
end

0 comments on commit 55f311e

Please sign in to comment.