Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkVillacampa committed Nov 28, 2012
1 parent af1e947 commit f686c9c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/controllers/admin/orders_controller_decorator.rb
Expand Up @@ -2,9 +2,10 @@


Spree::Admin::OrdersController.class_eval do Spree::Admin::OrdersController.class_eval do
after_filter :change_user_email , :only => [:update] after_filter :change_user_email , :only => [:update]



def change_user_email def change_user_email
return if !@order.user
if @order.user.anonymous? and SpreeLastAddress::Config[:dummy_addresses] if @order.user.anonymous? and SpreeLastAddress::Config[:dummy_addresses]
@order.user.email = params[:order][:email] @order.user.email = params[:order][:email]
@order.user.save @order.user.save
Expand Down

0 comments on commit f686c9c

Please sign in to comment.