spree_address_book icon indicating copy to clipboard operation
spree_address_book copied to clipboard

In the checkout, when user selects an address the other one gets destroyed

Open mdesantis opened this issue 6 years ago • 0 comments

When an user has two addresses, if you add a product to cart, start the checkout and switch from one address to the other one, the first one gets destroyed. The origin of this issue seems to be https://github.com/spree-contrib/spree_address_book/blob/6f43552924eb9bc9eaec1943e792e4cad2084897/app/controllers/spree/checkout_controller_decorator.rb#L41 where the address get destroyed without checking whether it is included in the user addresses.

mdesantis avatar Apr 11 '18 11:04 mdesantis