cirandas.net

commit 36b7e44a2a7905e0ec30a590049618dc3ae24a4a

Author: Hugo Melo <hugo@riseup.net>

products: fix destroy link with subdomains

 plugins/products/views/products_plugin/page/show.html.erb | 2 +-


diff --git a/plugins/products/views/products_plugin/page/show.html.erb b/plugins/products/views/products_plugin/page/show.html.erb
index af6a69eb245da169329b6911ea3e6563570d65cc..fc144ad7ce2104e0d671f1b27e35bf6d7b5d5204 100644
--- a/plugins/products/views/products_plugin/page/show.html.erb
+++ b/plugins/products/views/products_plugin/page/show.html.erb
@@ -96,7 +96,7 @@ <%= button_bar do %>
   <%= button_to_function :back, _('Back to the product listing'), "catalog.product.back(#{params[:rank]})" %>
   <% if user and (@user_is_admin or user.is_admin? profile) %>
     <%= button :add, _('Add product or service'), controller: "products_plugin/page", action: :new, profile: profile.identifier %>
-    <%= button :delete, _('Remove product or service'), {:action => 'destroy', :id => @product}, :class => 'requires-permission-products_plugin/page', :confirm => _('Are you sure you want to remove this product?') %>
+    <%= button :delete, _('Remove product or service'), {action: :destroy, id: @product, profile: profile.identifier}, class: 'requires-permission-products_plugin/page', confirm: _('Are you sure you want to remove this product?') %>
   <% end %>
 <% end %>