Commit ce8f3025b61f04135d288cf7807abab4c9b7178a
Exists in
master
and in
29 other branches
Merge remote-tracking branch 'participa/AI2934-pg_search_profile_fix' into AI293…
…4-pg_search_profile_fix
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 | ... | ... |