Skip to content

Commit

Permalink
Merge pull request #12026 from michaelmcandrew/pass-mailingJobId-to-h…
Browse files Browse the repository at this point in the history
…ookTokenValues

pass mailingJobId to hook_tokenValues
  • Loading branch information
eileenmcnaughton authored Aug 3, 2018
2 parents 0786231 + 1b03e96 commit a215c54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Civi/Token/TokenCompatSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public function onEvaluate(TokenValueEvent $e) {
// less randomly.
\CRM_Utils_Hook::tokenValues($contactArray,
(array) $contactId,
empty($row->context['mailingJob']) ? NULL : $row->context['mailingJob']->id,
empty($row->context['mailingJobId']) ? NULL : $row->context['mailingJobId'],
$messageTokens,
$row->context['controller']
);
Expand Down

0 comments on commit a215c54

Please sign in to comment.