diff options
author | francis <francis> | 2008-09-22 02:36:03 +0000 |
---|---|---|
committer | francis <francis> | 2008-09-22 02:36:03 +0000 |
commit | b7c7ff8ba4dcbd3b0569be27770c6ba7c2a02cbf (patch) | |
tree | 937f59fbccfdcd2ecb6d72a83804aa4fab6e9489 /app/controllers/request_controller.rb | |
parent | 808bb964222c3fff757b9bf617e7eb542325705a (diff) |
Set default signature to be your name if you are logged in.
Diffstat (limited to 'app/controllers/request_controller.rb')
-rw-r--r-- | app/controllers/request_controller.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/controllers/request_controller.rb b/app/controllers/request_controller.rb index 83b6e96ef..d00934e0b 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.108 2008-09-14 01:40:29 francis Exp $ +# $Id: request_controller.rb,v 1.109 2008-09-22 02:36:03 francis Exp $ class RequestController < ApplicationController @@ -93,7 +93,8 @@ class RequestController < ApplicationController end @info_request = InfoRequest.new(params[:info_request]) @outgoing_message = OutgoingMessage.new(params[:outgoing_message]) - + @outgoing_message.set_signature_name(@user.name) if !@user.nil? + if @info_request.public_body.nil? redirect_to frontpage_url else |