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

permanently delete contact should not remove activities if connected to other contacts

    Details

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

      Description

      see initial discussion here: http://issues.civicrm.org/jira/browse/CRM-13812

      to reproduce:
      1) create contact 1
      2) create contact 2
      3) create activity with source = contact 1 and target = contact 2
      4) permanently delete contact 1

      result: the activity record is completely removed, even though the activity was attached to another contact which was not deleted.

      the problem is in: CRM_Activity_BAO_Activity::cleanupActivity()
      according to the description of that method and the comments therein, we should not be deleting the activity record if contacts exist that are connected to the activity as a target or assignee. so this appears to be a bug, likely added during the activity_contact schema restructuring.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kurund Kurund Jalmi
                Reporter:
                lcdweb Brian Shaughnessy
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: