Commit d0043f537d8e7091727f4cf5f48061dce3d1671d
1 parent
657be12f
Exists in
master
and in
28 other branches
pg_search_plugin: fix profile search
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
plugins/pg_search/lib/pg_search_plugin.rb
... | ... | @@ -10,7 +10,7 @@ class PgSearchPlugin < Noosfero::Plugin |
10 | 10 | |
11 | 11 | def find_by_contents(asset, scope, query, paginate_options={}, options={}) |
12 | 12 | scope = scope.pg_search_plugin_search(query) unless query.blank? |
13 | - scope = scope.send(options[:filter]) unless options[:filter] | |
13 | + scope = scope.send(options[:filter]) if options[:filter] | |
14 | 14 | {:results => scope.paginate(paginate_options)} |
15 | 15 | end |
16 | 16 | ... | ... |