Skip to content

Commit

Permalink
Merge pull request #22874 from civicrm/mailing_token
Browse files Browse the repository at this point in the history
Contact token should show contact's info instead of logged in contact
  • Loading branch information
yashodha authored Mar 3, 2022
2 parents b6191d9 + 4dff499 commit 83278f2
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 83278f2

Please sign in to comment.