diff options
author | Robin Houston <robin.houston@gmail.com> | 2012-02-03 13:39:24 +0000 |
---|---|---|
committer | Robin Houston <robin.houston@gmail.com> | 2012-02-03 13:39:24 +0000 |
commit | bf4bbc351dae8e97d09b87434cef4f44eea4d73a (patch) | |
tree | 2f43c9c02205fec1fb68cdcb66735d5b1ee3172f /app/controllers/help_controller.rb | |
parent | ea04caec95cea132143997a1870ae8dd1fc0db5c (diff) | |
parent | 14b5be69dc2dc3c4dd817feb0b5a8402fc343db4 (diff) |
Merge branch 'release/0.5' into develop
Diffstat (limited to 'app/controllers/help_controller.rb')
-rw-r--r-- | app/controllers/help_controller.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/app/controllers/help_controller.rb b/app/controllers/help_controller.rb index 9b00846ee..b08438b52 100644 --- a/app/controllers/help_controller.rb +++ b/app/controllers/help_controller.rb @@ -31,15 +31,15 @@ class HelpController < ApplicationController end # look up link to request/body - @last_request_id = cookies["last_request_id"].to_i - if @last_request_id > 0 - @last_request = InfoRequest.find(@last_request_id) + last_request_id = cookies["last_request_id"].to_i + if last_request_id > 0 + @last_request = InfoRequest.find(last_request_id) else @last_request = nil end - @last_body_id = cookies["last_body_id"].to_i - if @last_body_id > 0 - @last_body = PublicBody.find(@last_body_id) + last_body_id = cookies["last_body_id"].to_i + if last_body_id > 0 + @last_body = PublicBody.find(last_body_id) else @last_body = nil end |