Block use of legacy style contribution tokens
authorEileen McNaughton <emcnaughton@wikimedia.org>
Sat, 18 Sep 2021 06:09:30 +0000 (18:09 +1200)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Sat, 18 Sep 2021 06:09:30 +0000 (18:09 +1200)
commitec20b7801c212113c8cae6be801554a17d962a77
tree5ad9ca3864cb0513c3c4fc794737306fe984e66c
parent4210cc48c5f8f23630e8dade7ba33bdbc0a78327
Block use of legacy style contribution tokens

ReplaceContributionTokens is only used from the pdf letter and email tasks.

This puts them in the validation rule to prevent form submission with them
and switches the test over to the preferred / advertised tokens

Docs https://lab.civicrm.org/-/ide/project/documentation/docs/sysadmin/tree/case/-/docs/upgrade/version-specific.md/
CRM/Contact/Form/Task/EmailTrait.php
CRM/Core/Form/Task/PDFLetterCommon.php
CRM/Utils/Token.php
tests/phpunit/CRM/Contribute/Form/Task/PDFLetterCommonTest.php