Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed deleting of issue attachments

  • Loading branch information...
commit dafcbde15ac967694d3d08458f8c5ee4522bdcc5 1 parent 7cd1d66
Michael authored
Showing with 5 additions and 5 deletions.
  1. +5 −5 app/views/attachments/_links.rhtml
10 app/views/attachments/_links.rhtml
View
@@ -9,11 +9,11 @@
<% end -%>
<% if options[:deletable] %>
- <%= link_to image_tag('delete.png'), {:controller => 'attachments', :action => 'destroy', :id => attachment},
- :confirm => l(:text_are_you_sure),
- :method => :post,
- :class => "delete",
- :title => l(:button_delete) %>
+ <%= link_to image_tag('delete.png'), attachment_path(attachment),
+ :confirm => l(:text_are_you_sure),
+ :method => :delete,
+ :class => 'delete',
+ :title => l(:button_delete) %>
<% end %>
<% if options[:author] %>
Please sign in to comment.
Something went wrong with that request. Please try again.