From 1def714bd60164afe10b0b9d83b87fec27d9617c Mon Sep 17 00:00:00 2001 From: Seb Bacon Date: Thu, 15 Sep 2011 11:48:08 +0100 Subject: Ensure we search public bodies only when special hidden form field is passed in --- app/controllers/general_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/controllers/general_controller.rb') 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 -- cgit v1.2.3