I am running CiviCRM 5.13.4, and have the following scenario.

• Administrator creates an Individual Contact offline, without any email address. • The User then registers for an online account through Drupal, which includes entering an email address. • The User can then log on as usual.

The system successfully deduplicates with the original contact, using the name and postcode (collected on the registration Profile). BUT the email entered by the User ends up as the Billing Email Address, not the Home address, and the Billing Email becomes the Primary email, which is not what is wanted.

It looks as if the linkage with Drupal is just picking up the first entry on the list of location types, and not taking note of the Default type which is set to Home.

This is a quite possible scenario when we migrate our existing membership database, and some of them start to use the online capability for the first time.

Is there any fix or workaround?

With thanks, Tony

  • 2
    Was unable to replicate this on 5.13.4. The email address was set to value set as default in location type. Commented May 22, 2019 at 15:26
  • Pls specify D7 or D8
    – petednz - fuzion
    Commented May 22, 2019 at 19:51
  • Sorry - Drupal 7.67.
    – user6274
    Commented May 23, 2019 at 17:38
  • If one creates an entirely new Contact by Registering a Drupal Account, then the email address ends up up in the (default) Home email on the Contact. If you create the Contact in CiviCRM first, with no email address, then when a new Drupal Accouint is registered the de-duplication process ends up with the email in Billing.
    – user6274
    Commented May 23, 2019 at 17:49
  • A further observation - the email from Drupal Registration shows up on the civiCRM View Cintact screen as Billing, but if you get the details via the API it has no Location Type Id at all.
    – user6274
    Commented May 24, 2019 at 10:23

1 Answer 1


I believe this is now fixed as part this PR. Can you please try patch from here if it fixes your problem?



  • It should fix it ... the PR was originally for @maynardsmith's site :-)
    – Aidan
    Commented Jun 13, 2019 at 17:54
  • Hi, Yes this sorts my problem - thanks to all. Can you tell me how I will know when this is included in a regular release of CiviCRM? regards, Tony
    – user6274
    Commented Jun 18, 2019 at 9:26
  • It will be part of 5.16 Commented Jun 18, 2019 at 11:41
  • Thank you. Regards, Tony
    – user6274
    Commented Jun 19, 2019 at 13:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.