From 78ea16c6847d86a90a1765283f599f989827b792 Mon Sep 17 00:00:00 2001 From: luisramos0 Date: Fri, 22 Mar 2019 21:30:25 +0000 Subject: [PATCH] Remove unnecessary data-hooks from stock management deface override --- .../variants/_form/add_stock_management.html.haml.deface | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/overrides/spree/admin/variants/_form/add_stock_management.html.haml.deface b/app/overrides/spree/admin/variants/_form/add_stock_management.html.haml.deface index 119a565ebe..e899da406c 100644 --- a/app/overrides/spree/admin/variants/_form/add_stock_management.html.haml.deface +++ b/app/overrides/spree/admin/variants/_form/add_stock_management.html.haml.deface @@ -1,11 +1,11 @@ / insert_bottom "[data-hook='admin_variant_form_fields']" - if Spree::Config[:track_inventory_levels] - .field.checkbox{ "data-hook" => "on_hand" } + .field.checkbox %label = f.check_box :on_demand = t(:on_demand) - .field{ "data-hook" => "on_hand" } + .field = f.label :on_hand, t(:on_hand) .fullwidth = f.text_field :on_hand