Make variantStock.on_demand= save the variant so that it doesn't impact on_hand that is already saving the variant with a lock

This commit is contained in:
luisramos0
2018-11-23 15:28:25 +00:00
parent ba8aa110c2
commit f509fa6c86

View File

@@ -105,6 +105,7 @@ module VariantStock
# unknown reasons, it does not pass the test.
stock_items.each do |item|
item.backorderable = new_value
item.save
end
end