Skip to content

Commit

Permalink
dev/core#2383 fix for
Browse files Browse the repository at this point in the history
  • Loading branch information
Vakeesan committed Feb 18, 2021
1 parent b5145c1 commit 94042e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CRM/Core/BAO/ActionSchedule.php
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ protected static function prepareMailingQuery($mapping, $actionSchedule) {
'casMailingJoinType' => ($actionSchedule->limit_to == 0) ? 'LEFT JOIN' : 'INNER JOIN',
'casMappingId' => $mapping->getId(),
'casMappingEntity' => $mapping->getEntity(),
'casEntityJoinExpr' => 'e.id = reminder.entity_id',
'casEntityJoinExpr' => 'e.id = IF(reminder.entity_table = "civicrm_contact", reminder.contact_id, reminder.entity_id)',
]);

if ($actionSchedule->limit_to == 0) {
Expand Down

0 comments on commit 94042e5

Please sign in to comment.