Skip to content

Commit

Permalink
Merge pull request #29460 from agileware/CIVICRM-2212
Browse files Browse the repository at this point in the history
Scheduled Reminder listing will not load at all if any Scheduled Reminder exists which refers to a deleted Membership Type
  • Loading branch information
colemanw authored Feb 21, 2024
2 parents feff2c4 + f4c9394 commit e9d2867
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CRM/Member/ActionMapping.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function getValueLabels(): array {
}

public function getStatusLabels(?array $entityValue): array {
foreach ($entityValue ?? [] as $membershipType) {
foreach (array_filter($entityValue ?? []) as $membershipType) {
if (\CRM_Core_DAO::getFieldValue('CRM_Member_DAO_MembershipType', $membershipType, 'auto_renew')) {
return \CRM_Core_OptionGroup::values('auto_renew_options');
}
Expand Down

0 comments on commit e9d2867

Please sign in to comment.