CRM-12401
authoryashodha <yashodha.chaku@webaccess.co.in>
Tue, 23 Apr 2013 17:37:20 +0000 (23:07 +0530)
committeryashodha <yashodha.chaku@webaccess.co.in>
Tue, 23 Apr 2013 17:37:20 +0000 (23:07 +0530)
CRM/Core/BAO/ActionSchedule.php

index 8d16d1c831372795f7127e737fd315f6db823af8..f204b740cf3e742ecb375d188fa2b95863465c96 100755 (executable)
@@ -844,8 +844,8 @@ WHERE reminder.action_schedule_id = %1 AND reminder.action_date_time IS NULL
         $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})";
 
       }