From e1ac0dc520fc89fbb75d1bd5a8d62c2ca1bfb2a5 Mon Sep 17 00:00:00 2001 From: Zdravko Balorda Date: Tue, 2 Jul 2013 10:10:42 +0200 Subject: [PATCH] bug x500 server error --- app/views/dmsf_files/show.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)}')",