CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • New CiviCRM contact created when Drupal user updates their email
Pages: [1]

Author Topic: New CiviCRM contact created when Drupal user updates their email  (Read 564 times)

stuart

  • I post occasionally
  • **
  • Posts: 41
  • Karma: 0
  • CiviCRM version: 4.2.7
  • CMS version: Drupal 6
  • MySQL version: 5.0.77
  • PHP version: 5.3
New CiviCRM contact created when Drupal user updates their email
October 31, 2012, 08:20:24 am
Our system has Drupal users linked to Civi Contacts via the email. We usually created Contacts first, then create the Drupal account at a later date.

It appears that when a user logins in to Drupal and updates their Drupal email address, the integration is automatically creating a new Civi Contact and associates them with this new Contact. This is problematic as it messes up the permissions.

It also appears to be renaming the original Drupal user account, so if the original username is:
"Brown01"
After the update the original user account has been renamed to:
"Brown01 2"

Can someone point me to the location of the CiviCRM code which provides this user account integration? Then I can take a look for a possible bug

Thanks

Jason W

  • I post frequently
  • ***
  • Posts: 197
  • Karma: 12
  • jason@civitrainingtutorials.com
  • CiviCRM version: 4.2
  • CMS version: Drupal 7
  • MySQL version: 5.x
  • PHP version: 5.x.x
Re: New CiviCRM contact created when Drupal user updates their email
October 31, 2012, 09:14:57 am
Hello Stuart,

I tried recreating this with my drupal 6 and 7, Civi 4.x installs, and my Joomla 4.2 install, and was not able to recreate it. It sounds like a bug, but perhaps in your case an upgrade could alleviate your issue.

One other Idea is Finding and merging duplicate contacts using a custom rule that uses fields other than Email then you can merge the contacts and gain the new email that way.

Hope this helps.

Cheers,
Jason
civiTrainingTutorials
"Helping You Help Others"

stuart

  • I post occasionally
  • **
  • Posts: 41
  • Karma: 0
  • CiviCRM version: 4.2.7
  • CMS version: Drupal 6
  • MySQL version: 5.0.77
  • PHP version: 5.3
Re: New CiviCRM contact created when Drupal user updates their email
November 01, 2012, 04:41:08 am
Thanks for your help. Turns out I was wrong in my assumption - the problem was caused by the Drupal module User Import after all. It was appending a number to some of our imported usernames.

I'll use your suggestion to merge the duplicates.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • New CiviCRM contact created when Drupal user updates their email

This forum was archived on 2017-11-26.