Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-10308

Duplicates in CiviPetition signatures cause errors

    Details

    • Type: Patch
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.1.2
    • Fix Version/s: 4.2.0
    • Component/s: CiviCampaign
    • Labels:
      None

      Description

      The contactId is never set in the case that a user is signing a petition but have already signed the petition, causing a nasty SQL error. To reproduce:

      • Create a petition
      • Sign the petition
      • In a separate browser session (I had to actually use a separate browser, clearing session cookies didn't seem to work), sign the petition with information that will trigger a dedupe.

      Expected result: "You have already signed this petition."
      Actual result: CRM error.

        Attachments

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              fearlsgroove Matt Moen
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: