spree_address_book
spree_address_book copied to clipboard
On address update, only delete old uneditable address if new one is saved
- Currently if you try and update an un-editable address, and there is an error on save, the old address still gets marked as deleted. If you then exit out of address editing you will have no addresses.
- Moved the @address.update_attribute(:deleted_at, Time.now) code within the successful save block so that the old address is only marked as deleted if the new address saves properly.