worked on CRM-12357, show bulk mailing activities if they are created.
authorKurund Jalmi <kurund@civicrm.org>
Mon, 29 Apr 2013 20:46:15 +0000 (13:46 -0700)
committerKurund Jalmi <kurund@civicrm.org>
Mon, 29 Apr 2013 20:46:15 +0000 (13:46 -0700)
CRM/Activity/BAO/Activity.php
CRM/Mailing/BAO/Mailing.php

index d0b215dfd816ead0d4a275cec8a2b076cdfd337b..c63ffddeb5a163ff8efd28bead4a9e3ac27bd6e4 100644 (file)
@@ -746,11 +746,6 @@ LEFT JOIN  civicrm_case_activity ON ( civicrm_case_activity.activity_id = tbl.ac
 
     $dao = CRM_Core_DAO::executeQuery($query, $params);
 
-    $notbulkActivityClause = '';
-    if ($bulkActivityTypeID) {
-      $notbulkActivityClause = " AND {$activityTempTable}.activity_type_id <> {$bulkActivityTypeID} ";
-    }
-
     // step 2: Get target and assignee contacts for above activities
     // create temp table for target contacts
     $activityContactTempTable = "civicrm_temp_activity_contact_{$randomNum}";
@@ -768,7 +763,7 @@ SELECT     ac.activity_id,
            ac.record_type_id,
            c.sort_name
 FROM       civicrm_activity_contact ac
-INNER JOIN {$activityTempTable} ON ( ac.activity_id = {$activityTempTable}.activity_id {$notbulkActivityClause} )
+INNER JOIN {$activityTempTable} ON ( ac.activity_id = {$activityTempTable}.activity_id )
 INNER JOIN civicrm_contact c ON c.id = ac.contact_id
 WHERE      c.is_deleted = 0
 
index 5ff34ae201163de1ff43bb2c641537355e9a0f65..a940ed231d9b7eb9d9829ec85e999f23a0959b2d 100644 (file)
@@ -2549,7 +2549,7 @@ SELECT  $mailing.id as mailing_id
    * @return $report array content/component.
    * @access public
    */
-  public function getMailingContent(&$report, &$form, $isSMS = FALSE) {
+  public static function getMailingContent(&$report, &$form, $isSMS = FALSE) {
     $htmlHeader = $textHeader = NULL;
     $htmlFooter = $textFooter = NULL;