Merge pull request #1314 from xmera-circle/undefined-method-dmsf-folder-path

Fix HTTP Status 500 when emailing document link
This commit is contained in:
Karel Picman 2021-12-01 07:37:00 +01:00 committed by GitHub
commit 7257f590c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,7 +34,7 @@
<% dir = DmsfFolder.find_by(id: i) %>
<% if dir && !folders.include?(dir) %>
<br/>
<%= link_to h(dir.dmsf_path_str), dmsf_folder_path(id: dir.project_id, folder_id: dir.id, only_path: false) %>
<%= link_to h(dir.dmsf_path_str), dmsf_folder_url(id: dir.project_id, folder_id: dir.id, only_path: false) %>
<br/><br/>
<% dir.dmsf_files.each do |file| %>
<% unless files.include?(file) %>