diff --git a/app/views/dmsf_files/show.html.erb b/app/views/dmsf_files/show.html.erb index a0263f83..c50bbd90 100644 --- a/app/views/dmsf_files/show.html.erb +++ b/app/views/dmsf_files/show.html.erb @@ -5,7 +5,7 @@ <% unless @file.locked_for_user? && !User.current.allowed_to?(:force_file_unlock, @project)%> <% if @file.locked? %> <% unless @file.unlockable? %> - <%= image_tag("locked.png", :plugin => :redmine_dmsf, :title => l(:title_file_parent_locked, :name => @file.lock[0].folder.title)) %> + <%= image_tag("locked.png", :plugin => :redmine_dmsf, :title => l(:title_file_parent_locked, :name => @file.lock.reverse[0].folder.title)) %> <% else %> <%= link_to_function(image_tag("unlock.png", :plugin => "redmine_dmsf"), "manipulation_link('#{url_for(:action => 'unlock', :id => @file, :current => request.url)}')",