mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user