diff options
author | Robin Houston <robin.houston@gmail.com> | 2012-01-09 13:37:41 +0000 |
---|---|---|
committer | Robin Houston <robin.houston@gmail.com> | 2012-01-09 13:37:41 +0000 |
commit | 3759249be76d2afcc2efc9e4c2d60a1d064341e5 (patch) | |
tree | 404083a35ce5fb79e6b6e6de6052af0af3c93e00 /app/controllers/help_controller.rb | |
parent | 5cabf8a340d55d317187191637921b11fdc5c56c (diff) | |
parent | a7e1e755bb94c63de87e0a2459ca1ee7dd341ba9 (diff) |
Merge branch 'release/0.5' into develop
Diffstat (limited to 'app/controllers/help_controller.rb')
-rw-r--r-- | app/controllers/help_controller.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/controllers/help_controller.rb b/app/controllers/help_controller.rb index c6d246b4c..9b00846ee 100644 --- a/app/controllers/help_controller.rb +++ b/app/controllers/help_controller.rb @@ -26,18 +26,18 @@ class HelpController < ApplicationController # if they clicked remove for link to request/body, remove it if params[:remove] @last_request = nil - session[:last_request_id] = nil - session[:last_body_id] = nil + cookies["last_request_id"] = nil + cookies["last_body_id"] = nil end # look up link to request/body - @last_request_id = session[:last_request_id].to_i + @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 = session[:last_body_id].to_i + @last_body_id = cookies["last_body_id"].to_i if @last_body_id > 0 @last_body = PublicBody.find(@last_body_id) else |