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 CiviCampaign (Moderators: Kiran Jagtap, xavier) »
  • Petition signatures create duplicates
Pages: [1]

Author Topic: Petition signatures create duplicates  (Read 1467 times)

bostaurus

  • I’m new here
  • *
  • Posts: 22
  • Karma: 0
Petition signatures create duplicates
September 30, 2012, 08:05:04 am
I am running Civicrm 4.1.2 on drupal 6.

I created a petition.  Both the Contact and Activity profiles used for the petition are set to "update the matching contact."  However all petition signatures are created as new individual records rather than updating the existing record with matching contact info.

I have checked that the Individual strict default dedupe rule is set to match to email address.  Yet identical email addresses in the petition signature leads to duplicate record.

I noticed there was something on the issue tracker about petitions creating duplicates, but it was supposed to have been fixed by version 4.1 (?)

I more or less replicated this behavior on the current demo site (version 4.2) although I can't check it as an anonymous user for the demo site, as permissions don't appear to be set that way.

Can anyone help?  Am I missing something or is this a bug?  Is there a patch?

Many thanks
Bostaurus

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Petition signatures create duplicates
September 30, 2012, 10:13:21 pm
Hi,

The behaviour is supposed to be different if a contact exists already (it skips the email verification and goes direct to the thank you).

Something possible: if an email exists several times (including deleted contacts I think) it can't decide which contact signed and creates a new one.

Could you give the link to the issue you saw as fixed?
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Deepak Srivastava

  • Ask me questions
  • ****
  • Posts: 677
  • Karma: 65
Re: Petition signatures create duplicates
October 01, 2012, 05:50:40 am
The exact problem has been fixed in v4.2 version already - http://issues.civicrm.org/jira/browse/CRM-10308.

Patch could be taken from there.
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

bostaurus

  • I’m new here
  • *
  • Posts: 22
  • Karma: 0
Re: Petition signatures create duplicates
October 01, 2012, 05:54:45 am
hi Xavier thanks for looking into this

What I have observed is that if a person is logged in to the drupal web site when they sign the petition, than an email confirmation is not sent.  However if they are in the contacts database but are not registered as a drupal user, they received the confirmation email and a duplicate record is created. 

Here is the link to the issue tracker entry I mentioned in my previous post.
http://issues.civicrm.org/jira/browse/CRM-9348


Thanks again!
Bostaurus

bostaurus

  • I’m new here
  • *
  • Posts: 22
  • Karma: 0
Re: Petition signatures create duplicates
October 01, 2012, 06:03:00 am
Thank you so much Deepak - but the error described in #CRM-10308 doesn't look to me like the same error I am having.  My problem is not one created by someone attempting to sign the petition a second time, which is how i interpreted the error described in #CRM-10308.  My problem is with someone who is already in our database but has never signed the petition.   When he/she signs the petition for the first time,  a new record is then created rather than updating the existing record that is already in the database.  It's as if the dedupe is not working at all.

I will look at that patch, but based on the description, I don't think it is the same problem.

Thanks again!!!

Bostaurus

bostaurus

  • I’m new here
  • *
  • Posts: 22
  • Karma: 0
Re: Petition signatures create duplicates
October 01, 2012, 07:06:45 am
OK - my apologies to both of you Xavier and Deepak.  I dug into the code and it looks like the patch for the signature.php file described in issue #CRM-9348 had not been applied by the time I installed version 4.1.2.  I've modified the file accordingly and a quick test shows that now dedupe/update is working.

Sorry to have wasted your time!  I should have checked that, but had just assumed that the correction would have already been made for 4.1.2.  Forgive a newbie - I'm still learning to interpret the notes on the issue tracker, etc. and I'm pretty amateur when it comes to code.

Thanks for bearing with me!

Regards,
Bostaurus

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviCampaign (Moderators: Kiran Jagtap, xavier) »
  • Petition signatures create duplicates

This forum was archived on 2017-11-26.