CRM-14732 - Activities where all target contacts are in trash should not be returned...
authorDave Greenberg <dave@civicrm.org>
Tue, 10 Nov 2015 21:07:29 +0000 (13:07 -0800)
committerDave Greenberg <dave@civicrm.org>
Tue, 10 Nov 2015 21:07:29 +0000 (13:07 -0800)
----------------------------------------
* CRM-14732: Search returns activities from Contacts in Trash
  https://issues.civicrm.org/jira/browse/CRM-14732

CRM/Activity/BAO/Query.php

index 5b87b93fbd1a9b0703a2413a25b836fce939988a..26226e972a70536c67363bfa3f7ad8f923c8c6da 100644 (file)
@@ -356,7 +356,7 @@ class CRM_Activity_BAO_Query {
         $from .= " INNER JOIN civicrm_activity
                       ON ( civicrm_activity.id = civicrm_activity_contact.activity_id
                       AND civicrm_activity.is_deleted = 0 AND civicrm_activity.is_current_revision = 1 )";
-             // Do not show deleted contact's activity
+        // Do not show deleted contact's activity
         $from .= " INNER JOIN civicrm_contact
                       ON ( civicrm_activity_contact.contact_id = civicrm_contact.id and civicrm_contact.is_deleted != 1 )";
         break;