diff options
author | francis <francis> | 2008-10-07 22:05:05 +0000 |
---|---|---|
committer | francis <francis> | 2008-10-07 22:05:05 +0000 |
commit | b802d138ea3559bc8eea08ce6d7fd542be6478d5 (patch) | |
tree | c12577831b9a104c07710ba6beeb36d9fe43b6bb /app/controllers/body_controller.rb | |
parent | a70a725316ec8c21522dd921c9a0c863577defe9 (diff) |
Put URL of last viewed request / authority in contact form emails.
Get rid of details box for requires_admin, as people were using it unnecessarily, instead direct
to contact form on next page.
Diffstat (limited to 'app/controllers/body_controller.rb')
-rw-r--r-- | app/controllers/body_controller.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/controllers/body_controller.rb b/app/controllers/body_controller.rb index b2addd045..1b113252f 100644 --- a/app/controllers/body_controller.rb +++ b/app/controllers/body_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: body_controller.rb,v 1.17 2008-09-13 15:35:37 francis Exp $ +# $Id: body_controller.rb,v 1.18 2008-10-07 22:05:06 francis Exp $ class BodyController < ApplicationController # XXX tidy this up with better error messages, and a more standard infrastructure for the redirect to canonical URL @@ -32,6 +32,7 @@ class BodyController < ApplicationController redirect_to show_public_body_url(:url_name => @public_bodies[0].url_name) end @public_body = @public_bodies[0] + set_last_body(@public_body) @track_thing = TrackThing.create_track_for_public_body(@public_body) @feed_autodetect = [ { :url => do_track_url(@track_thing, 'feed'), :title => @track_thing.params[:title_in_rss] } ] |