Skip to content

Commit

Permalink
#1518 Rails 7
Browse files Browse the repository at this point in the history
  • Loading branch information
picman committed May 21, 2024
1 parent cda9453 commit f8ebe13
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion app/controllers/dmsf_upload_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def upload_files

# REST API and Redmine attachment form
def upload
unless request.content_type == 'application/octet-stream'
unless request.media_type == 'application/octet-stream'
head :not_acceptable
return
end
Expand Down
5 changes: 3 additions & 2 deletions app/views/mailer/_issue.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
%>
<%= render partial: "/#{File.dirname(__FILE__)}/../../../../../app/views/mailer/issue.html.erb",
locals: { issue: issue, issue_url: issue_url, user: user } %>
<%# Render the original view %>
<% view_paths.unshift Rails.root.join('app/views').to_s %>
<%= render partial: 'issue', locals: { issue: issue, issue_url: issue_url, user: user } %>
<%# DMSF extension do %>
<% if issue.dmsf_files.any? %>
Expand Down
5 changes: 3 additions & 2 deletions app/views/mailer/_issue.text.erb
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
%>
<%= render partial: "/#{File.dirname(__FILE__)}/../../../../../app/views/mailer/issue.text.erb",
locals: { issue: issue, issue_url: issue_url, user: user } %>
<%# Render the original view %>
<% view_paths.unshift Rails.root.join('app/views').to_s %>
<%= render partial: 'issue', locals: { issue: issue, issue_url: issue_url, user: user } %>
<%# DMSF extension do %>
<% if issue.dmsf_files.any? %>
Expand Down
4 changes: 3 additions & 1 deletion app/views/my/_sidebar.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
%>
<%= render partial: "/#{File.dirname(__FILE__)}/../../../../../app/views/my/sidebar.html.erb" %>
<%# Render the original view %>
<% view_paths.unshift Rails.root.join('app/views').to_s %>
<%= render partial: 'sidebar' %>
<%# DMSF extension do %>
<% if Setting.plugin_redmine_dmsf['dmsf_webdav_authentication'] == 'Digest' %>
Expand Down

0 comments on commit f8ebe13

Please sign in to comment.