From e4bdf1dd44a354537df30532d6239383f87bf8ef Mon Sep 17 00:00:00 2001 From: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com> Date: Tue, 13 Apr 2021 16:40:49 +0100 Subject: [PATCH] Ensure Shipping Methods can be created with no tax category The option to apply *no* tax category should be present in this dropdown. --- app/views/spree/admin/shipping_methods/_form.html.haml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/views/spree/admin/shipping_methods/_form.html.haml b/app/views/spree/admin/shipping_methods/_form.html.haml index 6bba6e37ad..6e52ce1537 100644 --- a/app/views/spree/admin/shipping_methods/_form.html.haml +++ b/app/views/spree/admin/shipping_methods/_form.html.haml @@ -49,7 +49,8 @@ %fieldset.tax_categories.no-border-bottom %legend{align: "center"}= t('.tax_category') = f.field_container :tax_categories do - = f.select :tax_category_id, @tax_categories.map { |tc| [tc.name, tc.id] }, {}, :class => "select2 fullwidth" + = f.select :tax_category_id, @tax_categories.map { |tc| [tc.name, tc.id] }, + { include_blank: t(:none) }, class: "select2 fullwidth" = error_message_on :shipping_method, :tax_category_id %fieldset.categories.no-border-bottom