diff --git a/app/controllers/spree/admin/products_controller.rb b/app/controllers/spree/admin/products_controller.rb index 5c8fc4941f..53f8878def 100644 --- a/app/controllers/spree/admin/products_controller.rb +++ b/app/controllers/spree/admin/products_controller.rb @@ -34,6 +34,7 @@ module Spree else # Re-fill the form with deleted params on product @on_hand = request.params[:product][:on_hand] + @on_demand = request.params[:product][:on_demand] render :new end end diff --git a/app/views/spree/admin/products/new.html.haml b/app/views/spree/admin/products/new.html.haml index 6bf0077a2f..beec70cc5a 100644 --- a/app/views/spree/admin/products/new.html.haml +++ b/app/views/spree/admin/products/new.html.haml @@ -83,7 +83,7 @@ = f.field_container :on_demand do = f.label :on_demand, t(".on_demand") %br/ - = f.check_box :on_demand + = f.check_box :on_demand, value: '1', checked: @on_demand == '1' = f.error_message_on :on_demand .sixteen.columns.alpha