aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2015-03-03 11:37:05 +0000
committerLouise Crow <louise.crow@gmail.com>2015-03-03 11:37:05 +0000
commit952b9a3d1a138593cc323b08f90eef20c2ebcf77 (patch)
tree372627b7a1b98aa8d39fd91fbf0ff621f416ee15
parent73a8d1e9a5aa56964e5ba67f6a015c83180366e9 (diff)
Make notice about override work with batch requests.
They don't have a public body, so use the config param directly.
-rw-r--r--app/views/request/new.html.erb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/request/new.html.erb b/app/views/request/new.html.erb
index cbcf5a0a5..486a89d45 100644
--- a/app/views/request/new.html.erb
+++ b/app/views/request/new.html.erb
@@ -70,9 +70,9 @@
<%= foi_error_messages_for :info_request, :outgoing_message %>
- <% if @info_request.public_body.override_request_email %>
+ <% if !AlaveteliConfiguration::override_all_public_body_request_emails.blank? %>
<div class="warning">
- <%= _("<strong>Note:</strong> Because we're testing, requests are being sent to {{email}} rather than to the actual authority.", :email => @info_request.public_body.override_request_email) %>
+ <%= _("<strong>Note:</strong> Because we're testing, requests are being sent to {{email}} rather than to the actual authority.", :email => AlaveteliConfiguration::override_all_public_body_request_emails) %>
</div>
<% end %>