From 6f3c339e5e410960a71a75206149d97d5007b8af Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Wed, 18 Jul 2012 16:47:30 +0000 Subject: [PATCH] Removes a call to link_to_remote. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10028 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/issues/_relations.html.erb | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/app/views/issues/_relations.html.erb b/app/views/issues/_relations.html.erb index 350c00cfb..3d661ba00 100644 --- a/app/views/issues/_relations.html.erb +++ b/app/views/issues/_relations.html.erb @@ -19,13 +19,12 @@ <%=h relation.other_issue(@issue).status.name %> <%= format_date(relation.other_issue(@issue).start_date) %> <%= format_date(relation.other_issue(@issue).due_date) %> -<%= link_to_remote( - image_tag('link_break.png'), - { :url => {:controller => 'issue_relations', :action => 'destroy', :id => relation}, - :method => :delete, - :data => {:confirm => l(:text_are_you_sure)} }, - :title => l(:label_relation_delete) - ) if authorize_for('issue_relations', 'destroy') %> +<%= link_to image_tag('link_break.png'), + {:controller => 'issue_relations', :action => 'destroy', :id => relation}, + :remote => true, + :method => :delete, + :data => {:confirm => l(:text_are_you_sure)}, + :title => l(:label_relation_delete) if User.current.allowed_to?(:manage_issue_relations, @project) %> <% end %>