Skip to content

Commit

Permalink
Merge pull request #19628 from vakeesan26/master
Browse files Browse the repository at this point in the history
dev/core#2383 fix for contact custom data date field not working in scheduled reminder
  • Loading branch information
monishdeb authored Apr 6, 2021
2 parents 61db82a + 94042e5 commit 52dc358
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 52dc358

Please sign in to comment.