spree_address_book
spree_address_book copied to clipboard
In the checkout, when user selects an address the other one gets destroyed
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.