aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/request_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/request_controller.rb')
-rw-r--r--app/controllers/request_controller.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/controllers/request_controller.rb b/app/controllers/request_controller.rb
index 26318ef7d..21af0d8b0 100644
--- a/app/controllers/request_controller.rb
+++ b/app/controllers/request_controller.rb
@@ -4,7 +4,7 @@
# Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved.
# Email: francis@mysociety.org; WWW: http://www.mysociety.org/
#
-# $Id: request_controller.rb,v 1.28 2008-01-04 15:12:32 francis Exp $
+# $Id: request_controller.rb,v 1.29 2008-01-04 15:27:18 francis Exp $
class RequestController < ApplicationController
@@ -25,7 +25,8 @@ class RequestController < ApplicationController
# Page new form posts to
def new
- if params[:info_request].nil? || params[:outgoing_message].nil?
+ # First time we get to the page, not everything is filled in
+ if params[:submitted_new_request].nil?
# Read parameters in - public body can be passed from front page
@info_request = InfoRequest.new(params[:info_request])
@outgoing_message = OutgoingMessage.new(params[:outgoing_message])