Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix admin order update not redirecting to next step.

Merges #1650, Closes #1648
  • Loading branch information...
commit 990a705cf24e655a7d56ad6435d14173c70c8c85 1 parent c6a96f9
@laspluviosillas laspluviosillas authored radar committed
Showing with 3 additions and 1 deletion.
  1. +3 −1 core/app/controllers/spree/admin/orders_controller.rb
View
4 core/app/controllers/spree/admin/orders_controller.rb
@@ -50,8 +50,10 @@ def update
if @order.update_attributes(params[:order]) && @order.line_items.present?
@order.update!
unless @order.complete?
-
+ # Jump to next step if order is not complete.
+ return_path = admin_order_customer_path(@order)
else
+ # Otherwise, go back to first page since all necessary information has been filled out.
return_path = admin_order_path(@order)
end
else
Please sign in to comment.
Something went wrong with that request. Please try again.