address with saveInAddressBook 0 are still being added to the address book for new customers #7691
Labels
bug report
Component: Checkout
Component: Customer
Fixed in 2.2.x
The issue has been fixed in 2.2 release line
Issue: Clear Description
Gate 2 Passed. Manual verification of the issue description passed
Issue: Confirmed
Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed
Issue: Format is valid
Gate 1 Passed. Automatic verification of issue format passed
Issue: Ready for Work
Gate 4. Acknowledged. Issue is added to backlog and ready for development
Reproduced on 2.1.x
The issue has been reproduced on latest 2.1 release
Reproduced on 2.2.x
The issue has been reproduced on latest 2.2 release
Reproduced on 2.3.x
The issue has been reproduced on latest 2.3 release
If you place an order as a guest and set the save_in_address_book for an address on 0, that address will still be copied to the customer address book when registering as a new customer on the checkout success page.
Preconditions
Steps to reproduce
Expected result
Actual result
I traced this issue back to Magento\Sales\Model\Order\CustomerManagement where in the create() function a check should be added to see if the quote_address from where the order_address was copied from has a value 0 for save_in_address_book. If the value is 0, the address should not be copied.
Should be something like
protected $quoteAddressFactory;
The text was updated successfully, but these errors were encountered: