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 »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Duplicate contact created even though it's set to update
Pages: [1]

Author Topic: Duplicate contact created even though it's set to update  (Read 655 times)

sam555

  • Guest
Duplicate contact created even though it's set to update
May 05, 2010, 11:52:41 am
I'm not sure if this is a bug or I'm doing something wrong. (using latest civicrm 3.0 release with Drupal )

What I want is a simple email only sign up form that, when submitted, links to a larger form that gives the user the option of providing more info. This way, if they don't want to provide the extra info, they have still joined the email list.

It seems like it should be really simple. One profile with just email which adds the user to a civimail group. Another profile with more fields that acts as the landing page for the first.

And it all works perfectly, except the submission of the second form creates a duplicate record in the database, instead of updating the first record. I checked the update option in the second profiles settings, so it's not that.

There's a default strict rule set to match email, but it still adds a duplicate record, even though the emails match.

Can anyone tell me if I'm doing something wrong?

Thanks,
Sam

Kiran Jagtap

  • Ask me questions
  • ****
  • Posts: 533
  • Karma: 51
Re: Duplicate contact created even though it's set to update
May 06, 2010, 01:02:29 am
If I getting you..
1. First profile form :
for first profile form mode is create and which is right. so If you have record in db w/ same email address,
first form is not going to create new one, dude to your strict contact matching rule, right ?

2. Second profile form :
here whatever your data pass, system is going to create new contact w/ those data ?
IMO here you have contact already created by first profile form, so why you are not using profile edit mode ?
and get the contact id from first form and carry on this form for edit mode, so you effectively update existing record.

you might want to give more detail.

hope this help

kiran
You Are Designed To Choose... Defined By Choice.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Duplicate contact created even though it's set to update

This forum was archived on 2017-11-26.