diff --git a/app/helpers/spree/admin/base_helper_decorator.rb b/app/helpers/spree/admin/base_helper_decorator.rb index 9430ab8733..5398cee35f 100644 --- a/app/helpers/spree/admin/base_helper_decorator.rb +++ b/app/helpers/spree/admin/base_helper_decorator.rb @@ -18,7 +18,7 @@ module Spree options[:class] += 'no-text with-tip' if options[:no_text] html_options = {class: "remove_fields #{options[:class]}", data: {action: 'remove'}, title: t(:remove)} - html_options.merge!(options[:html]) + html_options.merge!(options[:html]) if options.key? :html link_to_with_icon('icon-trash', name, '#', html_options) + f.hidden_field(:_destroy) end