Use bill_address ||= rather than bill_address = val unless bill_address
This commit is contained in:
parent
162107ed0a
commit
78360afc5c
|
@ -89,7 +89,7 @@ module Spree
|
|||
order_ship_address.save!
|
||||
|
||||
@order.ship_address = order_ship_address
|
||||
@order.bill_address = order_ship_address unless @order.bill_address
|
||||
@order.bill_address ||= order_ship_address
|
||||
end
|
||||
@order.save
|
||||
|
||||
|
|
Loading…
Reference in New Issue