From b69d61dd77a7ee3cd9468fa09894e852951d3df7 Mon Sep 17 00:00:00 2001 From: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com> Date: Mon, 17 May 2021 13:11:11 +0100 Subject: [PATCH] Remove #order_update! call from method used in order after_save callbacks This method gets called twice every time we save a completed order, calling order_update! twice... --- app/models/spree/order.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/spree/order.rb b/app/models/spree/order.rb index c6a6ee80d7..dbad51f2dc 100644 --- a/app/models/spree/order.rb +++ b/app/models/spree/order.rb @@ -706,7 +706,7 @@ module Spree return if adjustment.finalized? adjustment.update_adjustment!(force: true) - update_order! + updater.update_totals_and_states end # object_params sets the payment amount to the order total, but it does this