Permalink
Browse files

fix

  • Loading branch information...
1 parent af1e947 commit f686c9c54142b6d3b3cadaabf519edc84bf68814 @MarkVillacampa committed Nov 28, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 app/controllers/admin/orders_controller_decorator.rb
@@ -2,9 +2,10 @@
Spree::Admin::OrdersController.class_eval do
after_filter :change_user_email , :only => [:update]
-
+
def change_user_email
+ return if !@order.user
if @order.user.anonymous? and SpreeLastAddress::Config[:dummy_addresses]
@order.user.email = params[:order][:email]
@order.user.save

0 comments on commit f686c9c

Please sign in to comment.