if (!empty($activityDAO->targetID)) {
// Re-lookup the target ID since the DAO only has the first recipient if there are multiple.
// Maybe not the best solution.
- $targetNames = CRM_Activity_BAO_ActivityTarget::getTargetNames($activityDAO->id);
+ $targetNames = CRM_Activity_BAO_ActivityContact::getNames($activityDAO->id, $targetID);
$processTarget = FALSE;
$label = ts('With Contact(s)');
- if (in_array($activityTypeInfo['name'], array(
- 'Email', 'Inbound Email'))) {
+ if (in_array($activityTypeInfo['name'], array('Email', 'Inbound Email'))) {
$processTarget = TRUE;
$label = ts('Recipient');
}
$where[] = "e.membership_type_id IS NULL";
}
- $where[] = "e.is_override IS NULL OR e.is_override = 0";
+ $where[] = "( e.is_override IS NULL OR e.is_override = 0 )";
$dateField = str_replace('membership_', 'e.', $actionSchedule->start_action_date);
$notINClause = self::permissionedRelationships($contactField);
-
+
- $memershipStatus = CRM_Member_PseudoConstant::membershipStatus(NULL, "is_current_member = 1", 'id');
- $mStatus = implode (',', $memershipStatus);
+ $membershipStatus = CRM_Member_PseudoConstant::membershipStatus(NULL, "is_current_member = 1 OR name = 'Expired'", 'id');
+ $mStatus = implode (',', $membershipStatus);
$where[] = "e.status_id IN ({$mStatus})";
}