From e8900049bed541c362651cc6e241f41be8a041c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Pi=C4=8Dman?= Date: Fri, 17 Oct 2014 15:07:09 +0200 Subject: [PATCH] NoMethodError (undefined method 'delete' for nil:NilClass) #303 --- app/views/dmsf/edit.html.erb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/dmsf/edit.html.erb b/app/views/dmsf/edit.html.erb index ce151d15..d21f21de 100644 --- a/app/views/dmsf/edit.html.erb +++ b/app/views/dmsf/edit.html.erb @@ -42,12 +42,12 @@ :title => l(:title_create_link), :class => 'icon icon-link') %> <%= link_to(l(:button_copy), copy_folder_path(:id => @folder), - :title => l(:title_copy), :class => 'icon icon-copy') %> + :title => l(:title_copy), :class => 'icon icon-copy') %> <%= link_to(l(:button_delete), - delete_dmsf_path(:id => @project, :folder_id => @folder.dmsf_folder_id, :delete_folder_id => @folder), + delete_dmsf_path(:id => @project, :folder_id => @folder), :data => {:confirm => l(:text_are_you_sure)}, :title => l(:title_delete), - :class => 'icon icon-del') %> + :class => 'icon icon-del') %> <% else %> <% if (!@folder.locked_for_user? || User.current.allowed_to?(:force_file_unlock, @project)) && @folder.unlockable? %> <%= link_to(l(:button_unlock),