From af397390e0ca7a6c6b9911d24768130e2f5528bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20G=C3=BCnther?= Date: Wed, 22 Jun 2016 11:38:01 +0200 Subject: [PATCH] Fix block removal link_to Fixes https://community.openproject.com/work_packages/23541/activity --- app/views/my_projects_overviews/_block.html.erb | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/app/views/my_projects_overviews/_block.html.erb b/app/views/my_projects_overviews/_block.html.erb index 284b1d6568..e656de2fee 100644 --- a/app/views/my_projects_overviews/_block.html.erb +++ b/app/views/my_projects_overviews/_block.html.erb @@ -25,13 +25,12 @@ See doc/COPYRIGHT.md for more details. <% content_for block_name_id do %>
<% if User.current.allowed_to?(:remove_block, nil, global: true) %> - <%= link_to '', { - remote: true, - confirm: l(:label_confirm_delete), - url: { action: "remove_block", block: block_name }, - html: { class: "icon icon-close", title: l(:button_delete) } - } - %> + <%= link_to '', { action: "remove_block", block: block_name }, + remote: true, + method: :post, + confirm: l(:label_confirm_delete), + class: "icon icon-close", + title: l(:button_delete) %> <% end %>
<% end %>