Skip to content

Commit

Permalink
Merge pull request civicrm#9874 from totten/master-acttok
Browse files Browse the repository at this point in the history
(Regression) CRM_Mailing_ActionTokens - Degrade gracefully
  • Loading branch information
totten authored Feb 28, 2017
2 parents 431f89f + fbd1f71 commit dac08d8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CRM/Mailing/ActionTokens.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,13 @@ public function __construct() {
));
}

/**
* @inheritDoc
*/
public function checkActive(\Civi\Token\TokenProcessor $processor) {
return !empty($processor->context['mailingId']) || !empty($processor->context['mailing']);
}

/**
* @inheritDoc
*/
Expand Down

0 comments on commit dac08d8

Please sign in to comment.