Corrects deletion link

pull/370/head
Hagen Schink 11 years ago
parent 97144cc96e
commit 7269a39898
  1. 15
      app/views/work_packages/_action_menu.html.erb

@ -28,13 +28,14 @@ See doc/COPYRIGHT.rdoc for more details.
<%= li_unless_nil(link_to_if_authorized l(:button_copy), {:controller => '/work_packages/moves', :action => 'new', :work_package_id => controller.work_package, :copy => ''}, :class => 'icon icon-copy') %>
<%= li_unless_nil(link_to_if_authorized l(:button_move), {:controller => '/work_packages/moves', :action => 'new', :work_package_id => controller.work_package}, :class => 'icon icon-move') %>
<%= li_unless_nil(link_to_if_authorized l(:button_delete), { :controller => '/issues',
:action => 'destroy',
:id => controller.work_package },
:confirm => (controller.work_package.leaf? ? l(:text_are_you_sure) : l(:text_are_you_sure_with_children)),
:remote => true,
:method => :delete ,
:class => 'icon icon-del' ) %>
<%= li_unless_nil(link_to_if_authorized l(:button_delete),
{ :controller => '/work_packages',
:action => 'destroy',
:id => controller.work_package,
:todo => 'destroy' },
:confirm => (controller.work_package.leaf? ? l(:text_are_you_sure) : l(:text_are_you_sure_with_children)),
:method => :delete ,
:class => 'icon icon-del' ) %>
<%= call_hook(:view_work_package_show_action_menu, :work_package => controller.work_package) %>
<% end %>

Loading…
Cancel
Save