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

Duplicate entry error when sending emails to multiple addresses from the same contact

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 3.2
    • Fix Version/s: 3.4.alpha
    • Component/s: None
    • Labels:
      None

      Description

      When sending an email to multiple addresses of a single contact through contact activity, an error is displayed, but does not impact the sending of mail.

      INSERT INTO civicrm_activity_target (activity_id , target_contact_id ) VALUES ( 9 , 233 ) [nativecode=1062 ** Duplicate entry '233-9' for key 'UI_activity_target_contact_id']

      A crude fix may just be to simply make these statements INSERT IGNORE

        Attachments

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              stefan Stefan
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 10 minutes
                10m
                Remaining:
                Remaining Estimate - 10 minutes
                10m
                Logged:
                Time Spent - Not Specified
                Not Specified