dev/core#5587, dev/core#5560 - bring back validation of emails in profiles #31455
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
Before
Since 5.75:
After
Technical Details
The xml schema used to contain a
<rule>
for 3 fields, one of them being email. This is used when building the profile to add a form rule. Since it was only 3 fields, one of them deprecated, it didn't get copied over to the new way.See ticket for more details.
Technically I should also update user_unique_id's input type to be Url the same as openid because that's what it was before, but it's marked deprecated and I couldn't see how to add it to a profile.
Comments
This isn't a "beautiful" fix but I don't know where else to put it. There's a little discussion in ticket.
I'm not sure openid is even working in profiles. I think this is a separate issue. Note to see it on the contact you have to enable it under Display Preferences, but even then it doesn't seem to get stored when entered in a profile form. But at least now the validation will work.