aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/request_controller.rb
diff options
context:
space:
mode:
authorFrancis Irving <francis@mysociety.org>2010-10-04 00:34:01 +0100
committerFrancis Irving <francis@mysociety.org>2010-10-04 00:34:01 +0100
commit64e974b0d5d6dcb3d9c1249306acc92e9b3ebeed (patch)
treeef5f401e95b06d58a79bef889f3fc73b8ec0849b /app/controllers/request_controller.rb
parentc5c4072a1f5d4a161d6749851e886981115b3878 (diff)
Remove spurious lines. Reorganise slightly.
Diffstat (limited to 'app/controllers/request_controller.rb')
-rw-r--r--app/controllers/request_controller.rb10
1 files changed, 3 insertions, 7 deletions
diff --git a/app/controllers/request_controller.rb b/app/controllers/request_controller.rb
index 734c649dd..eaa69b872 100644
--- a/app/controllers/request_controller.rb
+++ b/app/controllers/request_controller.rb
@@ -141,12 +141,6 @@ class RequestController < ApplicationController
# Page new form posts to
def new
- # Allow url_name
- if !params[:public_body_url_name].nil? && params
- end
- if params[:submitted_new_request].nil?
- end
-
# All new requests are of normal_sort
if !params[:outgoing_message].nil?
params[:outgoing_message][:what_doing] = 'normal_sort'
@@ -180,7 +174,9 @@ class RequestController < ApplicationController
# First time we get to the page, just display it
if params[:submitted_new_request].nil? || params[:reedit]
# Read parameters in - public body must be passed in
- params[:info_request] = { :public_body_id => params[:public_body_id], :tag_string => params[:tags] } if !params[:info_request]
+ if !params[:info_request]
+ params[:info_request] = { :public_body_id => params[:public_body_id], :tag_string => params[:tags] }
+ end
if !params[:info_request][:public_body_id]
redirect_to frontpage_url
return