Browse files

Fix admin order update not redirecting to next step.

Merges #1650, Closes #1648
  • Loading branch information...
1 parent c6a96f9 commit 990a705cf24e655a7d56ad6435d14173c70c8c85 @laspluviosillas laspluviosillas committed with radar Jun 7, 2012
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

0 comments on commit 990a705

Please sign in to comment.