diff options
author | Robin Houston <robin.houston@gmail.com> | 2012-07-16 19:01:51 +0100 |
---|---|---|
committer | Robin Houston <robin.houston@gmail.com> | 2012-07-16 19:01:51 +0100 |
commit | f340cb41b3d27936dc2900894bdd35c9c16e8fc9 (patch) | |
tree | 206551e3827123bf3f2f99452f89d11046495cdb /app/controllers/admin_request_controller.rb | |
parent | 7aeb616b07d5bd16af62b8139d2a0908f065f0e2 (diff) | |
parent | 7ff363177ebb76361aed2682382de24ef66c7408 (diff) |
Merge branch 'feature/public-body-api-2a' into develop
Diffstat (limited to 'app/controllers/admin_request_controller.rb')
-rw-r--r-- | app/controllers/admin_request_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/admin_request_controller.rb b/app/controllers/admin_request_controller.rb index fd1405319..ae4bb511a 100644 --- a/app/controllers/admin_request_controller.rb +++ b/app/controllers/admin_request_controller.rb @@ -28,7 +28,7 @@ class AdminRequestController < AdminController @info_request = InfoRequest.find(params[:id]) # XXX is this *really* the only way to render a template to a # variable, rather than to the response? - vars = OpenStruct.new(:name_to => @info_request.user.name, + vars = OpenStruct.new(:name_to => @info_request.user_name, :name_from => MySociety::Config.get("CONTACT_NAME", 'Alaveteli'), :info_request => @info_request, :reason => params[:reason], :info_request_url => 'http://' + MySociety::Config.get('DOMAIN') + request_url(@info_request), |