From d8907701047fbd5cd14ce1304ce4b074f5b3e5b0 Mon Sep 17 00:00:00 2001 From: Rohan Mitchell Date: Fri, 20 May 2016 11:02:27 +1000 Subject: [PATCH] Order state transition condition removed in Spree --- app/models/spree/order_decorator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/spree/order_decorator.rb b/app/models/spree/order_decorator.rb index f6128a736db..c62f1141774 100644 --- a/app/models/spree/order_decorator.rb +++ b/app/models/spree/order_decorator.rb @@ -35,7 +35,7 @@ order.payment_required? } go_to_state :confirm, :if => lambda { |order| order.confirmation_required? } - go_to_state :complete, :if => lambda { |order| (order.payment_required? && order.has_unprocessed_payments?) || !order.payment_required? } + go_to_state :complete remove_transition :from => :delivery, :to => :confirm end