aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/controllers/request_controller.rb1
-rw-r--r--app/views/request/_correspondence.html.erb2
2 files changed, 2 insertions, 1 deletions
diff --git a/app/controllers/request_controller.rb b/app/controllers/request_controller.rb
index b2d228494..388473b51 100644
--- a/app/controllers/request_controller.rb
+++ b/app/controllers/request_controller.rb
@@ -883,6 +883,7 @@ class RequestController < ApplicationController
if !File.exists?(cache_file_path)
FileUtils.mkdir_p(File.dirname(cache_file_path))
make_request_zip(@info_request, cache_file_path)
+ File.chmod(0644, cache_file_path)
end
send_file(cache_file_path, :filename => "#{@info_request.url_title}.zip")
end
diff --git a/app/views/request/_correspondence.html.erb b/app/views/request/_correspondence.html.erb
index 872761749..c39625c3c 100644
--- a/app/views/request/_correspondence.html.erb
+++ b/app/views/request/_correspondence.html.erb
@@ -5,7 +5,7 @@
<% when 'sent', 'followup_sent' %>
<%= render :partial => 'request/outgoing_correspondence', :locals => { :outgoing_message => info_request_event.outgoing_message, :info_request_event => info_request_event }%>
<% when 'resent', 'followup_resent' %>
- <%= render :partial => 'request/resent_outgoing_correspondence', :locals => { outgoing_message => info_request_event.outgoing_message, :info_request_event => info_request_event }%>
+ <%= render :partial => 'request/resent_outgoing_correspondence', :locals => { :outgoing_message => info_request_event.outgoing_message, :info_request_event => info_request_event }%>
<% when 'comment' %>
<%= render :partial => 'comment/single_comment', :locals => { :comment => info_request_event.comment } %>
<% end %>