From 4dff499c29009ca931336ebf903161a8045afee5 Mon Sep 17 00:00:00 2001 From: Monish Deb Date: Wed, 2 Mar 2022 15:22:11 +0530 Subject: [PATCH] Contact token should show contact's info instead of logged in contact --- CRM/Mailing/BAO/Mailing.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CRM/Mailing/BAO/Mailing.php b/CRM/Mailing/BAO/Mailing.php index 51157ae9bd7c..5b59f5329458 100644 --- a/CRM/Mailing/BAO/Mailing.php +++ b/CRM/Mailing/BAO/Mailing.php @@ -2860,7 +2860,7 @@ public static function getContactMailingSelector(&$params) { CRM_Core_Action::VIEW => [ 'name' => ts('View'), 'url' => 'civicrm/mailing/view', - 'qs' => "reset=1&id=%%mkey%%", + 'qs' => "reset=1&id=%%mkey%%&cid=%%cid%%&cs=%%cs%%", 'title' => ts('View Mailing'), 'class' => 'crm-popup', ], @@ -2884,6 +2884,7 @@ public static function getContactMailingSelector(&$params) { 'mid' => $values['mailing_id'], 'cid' => $params['contact_id'], 'mkey' => $mailingKey, + 'cs' => CRM_Contact_BAO_Contact_Utils::generateChecksum($params['contact_id'], NULL, 'inf'), ], ts('more'), FALSE,