From 4bd9197eabcec00bb758c49244da2e57bd0fab20 Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Sat, 4 Sep 2021 23:50:40 +0000 Subject: [PATCH] fix event custom field tokens in scheduled reminders --- CRM/Event/Tokens.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Event/Tokens.php b/CRM/Event/Tokens.php index 15784cd872..9b7e2c45a0 100644 --- a/CRM/Event/Tokens.php +++ b/CRM/Event/Tokens.php @@ -127,7 +127,7 @@ LEFT JOIN civicrm_phone phone ON phone.id = lb.phone_id $row->tokens($entity, $field, $actionSearchResult->$field); } elseif ($cfID = \CRM_Core_BAO_CustomField::getKeyID($field)) { - $row->customToken($entity, $cfID, $actionSearchResult->entity_id); + $row->customToken($entity, $cfID, $actionSearchResult->event_id); } else { $row->tokens($entity, $field, ''); -- 2.25.1