Skip to content

Commit

Permalink
Contact token should show contact's info instead of logged in contact
Browse files Browse the repository at this point in the history
  • Loading branch information
monishdeb committed Mar 2, 2022
1 parent ac7573e commit 4dff499
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CRM/Mailing/BAO/Mailing.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
],
Expand All @@ -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,
Expand Down

0 comments on commit 4dff499

Please sign in to comment.