Error 500 when a link to another folder is in the folder/project #565

This commit is contained in:
Karel Picman 2016-08-23 07:42:19 +02:00
parent 1d379e0ebe
commit fc6a4fc81e
2 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@
<%= link_to(h(title),
dmsf_folder_path(:id => project, :folder_id => subfolder),
:class => 'icon icon-folder',
:title => h(subfolder.description)) %>
:title => subfolder ? h(subfolder.description) : nil) %>
<% if link %>
<div class="dmsf_filename" title="<%= l(:label_target_folder)%>"><%= link.path %></div>
<% else %>

View File

@ -24,7 +24,7 @@
:title => l(:title_check_for_restore_or_delete), :id => "subfolder_#{id}") %></td>
<td class="dmsf_title">
<%= content_tag(:span, h(title),
:title => h(subfolder.description),
:title => subfolder ? h(subfolder.description) : nil,
:class => 'icon icon-folder') %>
<% if link %>
<div class="dmsf_filename" title="<%= l(:label_target_folder)%>"><%= link.path %></div>