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

Activity Contact (& Activity?) records not being deleted on contact delete

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.4.3
    • Fix Version/s: 4.4.4
    • Component/s: None
    • Labels:
      None

      Description

      This was just reported on IRC & I checked a live DB & found it too - running this query

      SELECT count FROM civicrm_activity_contact ac
      LEFT JOIN civicrm_contact c
      ON c.id = ac.contact_id
      WHERE c.id IS NULL

      Returned many thousand records.

      It appears there is no Foreign key to cause deletes & presumably no alternate mechanism in place

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                pratik.joshi Pratik Joshi
                Reporter:
                eileen Eileen McNaughton
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: