mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-11 23:17:48 +00:00
Adapted order_decorator to spree 2 by fixing adjustment.update! call on update_adjustment
This commit is contained in:
@@ -386,7 +386,7 @@ Spree::Order.class_eval do
|
||||
return if adjustment.finalized?
|
||||
state = adjustment.state
|
||||
adjustment.state = 'open'
|
||||
adjustment.update!(self)
|
||||
adjustment.update!
|
||||
adjustment.state = state
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user