From: Kurund Jalmi Date: Mon, 29 Apr 2013 20:46:15 +0000 (-0700) Subject: worked on CRM-12357, show bulk mailing activities if they are created. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=ef41c3d44c60dcd6a1cfb8a09c02f17003cc555a;p=civicrm-core.git worked on CRM-12357, show bulk mailing activities if they are created. --- diff --git a/CRM/Activity/BAO/Activity.php b/CRM/Activity/BAO/Activity.php index d0b215dfd8..c63ffddeb5 100644 --- a/CRM/Activity/BAO/Activity.php +++ b/CRM/Activity/BAO/Activity.php @@ -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 diff --git a/CRM/Mailing/BAO/Mailing.php b/CRM/Mailing/BAO/Mailing.php index 5ff34ae201..a940ed231d 100644 --- a/CRM/Mailing/BAO/Mailing.php +++ b/CRM/Mailing/BAO/Mailing.php @@ -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;