From bc1430c984c7ba4659e7b6990690d0becc23ea0f Mon Sep 17 00:00:00 2001 From: Luis Ramos Date: Tue, 10 Mar 2020 12:34:02 +0000 Subject: [PATCH] Make new_variant button work again by making a normal call to the server, isntead of an ajax call that was no longer working --- app/views/spree/admin/variants/index.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/spree/admin/variants/index.html.haml b/app/views/spree/admin/variants/index.html.haml index eee0231c80..199bcc0501 100644 --- a/app/views/spree/admin/variants/index.html.haml +++ b/app/views/spree/admin/variants/index.html.haml @@ -49,6 +49,6 @@ - content_for :page_actions do %ul.inline-menu %li#new_var_link - = link_to_with_icon('icon-plus', t('.new_variant'), new_admin_product_variant_url(@product), remote: true, 'data-update' => 'new_variant', class: 'button') + = link_to_with_icon('icon-plus', t('.new_variant'), new_admin_product_variant_url(@product), class: 'button') %li= link_to_with_icon('icon-filter', @deleted.blank? ? t('.show_deleted') : t('.show_active'), admin_product_variants_url(@product, deleted: @deleted.blank? ? "on" : "off"), class: 'button')