Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Trivial
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.7.18
-
Fix Version/s: 4.7.20
-
Component/s: None
-
Labels:
-
Versioning Impact:Patch (backwards-compatible bug fixes)
-
Documentation Required?:None
-
Funding Source:Contributed Code
-
Verified?:No
Description
Recreated on demo site:
- Create a custom field on Individual-subtype 'Parent'
- Create a record with the subtype 'Student', with email address 'test@test.com'
- Create a profile that exposes the custom field created in #1, along with the contact email address
- Set the profile to match the existing contact
- Run the profile in 'create' mode, enter any data into the custom field, and 'test@test.com' as the address
- You get an error: "The Contact Sub Type does not match the Contact type for this record"
This happens because of a call to implodePadded in CRM/Contact/BAO/Contact.php. The resulting string ends up with multiple delimiters between the imploded values.
PR coming shortly.