mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-13 04:00:21 +00:00
When removing variant from order, if not found then do nothing
This commit is contained in:
@@ -99,7 +99,7 @@ Spree::Order.class_eval do
|
||||
def remove_variant(variant)
|
||||
line_items(:reload)
|
||||
current_item = find_line_item_by_variant(variant)
|
||||
current_item.destroy
|
||||
current_item.andand.destroy
|
||||
end
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user