aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/controllers/request_controller.rb3
-rw-r--r--app/views/request/show.rhtml4
2 files changed, 3 insertions, 4 deletions
diff --git a/app/controllers/request_controller.rb b/app/controllers/request_controller.rb
index be193cc2d..e8ca767fa 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.47 2008-02-13 09:32:55 francis Exp $
+# $Id: request_controller.rb,v 1.48 2008-02-14 09:57:56 francis Exp $
class RequestController < ApplicationController
@@ -13,7 +13,6 @@ class RequestController < ApplicationController
@info_request_events = @info_request.info_request_events
@info_request_events.sort! { |a,b| a.created_at <=> b.created_at }
@status = @info_request.calculate_status
- @date_response_required_by = @info_request.date_response_required_by
@collapse_quotes = params[:unfold] ? false : true
@is_owning_user = !authenticated_user.nil? && authenticated_user.id == @info_request.user_id
@events_needing_description = @info_request.events_needing_description
diff --git a/app/views/request/show.rhtml b/app/views/request/show.rhtml
index 4af4ef8c0..986a87d11 100644
--- a/app/views/request/show.rhtml
+++ b/app/views/request/show.rhtml
@@ -28,12 +28,12 @@
<% end %>
<% elsif @status == 'waiting_response' %>
Currently <strong>waiting for a response</strong> from <%= public_body_link(@info_request.public_body) %>,
- due by <strong><%= simple_date(@date_response_required_by) %></strong>.
+ due by <strong><%= simple_date(@info_request.date_response_required_by) %></strong>.
<% elsif @status == 'waiting_response_overdue' %>
Currently <strong>overdue a response</strong> from <%=
public_body_link(@info_request.public_body) %>. The
<%= link_to "response was due", about_url %></li>
- on <strong><%= simple_date(@date_response_required_by) %></strong>.
+ on <strong><%= simple_date(@info_request.date_response_required_by) %></strong>.
<% elsif @status == 'rejected' %>
The request was <strong>rejected</strong> by <%= public_body_link(@info_request.public_body) %>.
<% elsif @status == 'successful' %>