mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Fix callback in LineItem
#changed? here was not working as before, and the code was never getting past this guard in various places where previously it did. This meant the callback was effectively disabled, and order.update! was not being called when it should be.
This commit is contained in:
@@ -226,7 +226,7 @@ module Spree
|
||||
end
|
||||
|
||||
def update_order
|
||||
return unless changed? || destroyed?
|
||||
return unless saved_change_to_quantity? || destroyed?
|
||||
|
||||
# update the order totals, etc.
|
||||
order.create_tax_charge!
|
||||
|
||||
Reference in New Issue
Block a user