diff options
author | Seb Bacon <seb.bacon@gmail.com> | 2011-09-15 11:48:08 +0100 |
---|---|---|
committer | Seb Bacon <seb.bacon@gmail.com> | 2011-09-15 11:48:08 +0100 |
commit | 1def714bd60164afe10b0b9d83b87fec27d9617c (patch) | |
tree | 778c24a3784a43f35ea0e39afd600bfa33569504 /app/controllers/general_controller.rb | |
parent | 6d3baa662eaa4f704ffa5e8adf71733adec8fe87 (diff) |
Ensure we search public bodies only when special hidden form field is passed in
Diffstat (limited to 'app/controllers/general_controller.rb')
-rw-r--r-- | app/controllers/general_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/general_controller.rb b/app/controllers/general_controller.rb index ada891ce9..cefc3c020 100644 --- a/app/controllers/general_controller.rb +++ b/app/controllers/general_controller.rb @@ -98,7 +98,7 @@ class GeneralController < ApplicationController if path.size > 0 && (['bodies', 'requests', 'users', 'all'].include?(path[-1])) @variety_postfix = path.pop end - @variety_postfix = params[:bodies] if @variety_postfix.nil? && !params[:bodies].nil? + @variety_postfix = "bodies" if @variety_postfix.nil? && !params[:bodies].nil? @variety_postfix = "requests" if @variety_postfix.nil? if @variety_postfix != "users" @common_query = get_tags_from_params |