Merge user did not pull in alternate email

AI-generated summary

Lou reported an issue in the Product Support category where merging a user into another account failed to add the ‘from’ user’s email as an alternate email on the ‘to’ user’s profile. Lou hypothesized that the process skipped adding the email because the ‘to’ user already had an existing alternate email. awesomerobot confirmed this suspicion, agreeing that the system currently skips the new email if an alternate one already exists. They noted that an update is needed to ensure the original email is added as an additional secondary email rather than being ignored.

I tried to merge a user to another account, and I expected the “from” user’s email to end up as an alternate email under the “to” user. This did not happen.

The “to” user already had an alternate email. I suspect when the “to” user already has an alternate email, an additional new email isn’t added.

Yes this looks like the case. It seems like we need to make an update so that we add the original email as an additional secondary email instead of skipping it entirely.