Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 UTC on 18 March 2024, to get $100 off your ticket.
Steps to Reproduce this bug:
- Add a new Customer Profile Reference field (commerce_customer_profile_reference) to the user entity at .../admin/config/people/accounts/fields and select the Customer Profile Manager (commerce_customer_profile_manager) wiget. PS: Haven't tested but this bug might occurs if this field is added to any entity (node, taxonomy, etc)
- Try to create a new user at .../user/register, leave some required field empty so the form will fail validation and submit it.
- Log back in as administrator and check out the list of customer profiles at .../admin/commerce/customer-profiles, you will notice that a new profile was added.
If the form fails 10x you will end up with 10 customer profiles for those failed validation attempts.
Comments
Comment #1
kotnik CreditAttribution: kotnik commentedThis is duplicate of #1131884: commerce_customer_profile_manager_validate creates new profiles during ajax callbacks if no profile is set on the form..
Comment #1.0
kotnik CreditAttribution: kotnik commentedminor grammar correction.