dev/core#2814 fix tokenCompat to be consistent with unresolved tokens
authorEileen McNaughton <emcnaughton@wikimedia.org>
Wed, 22 Sep 2021 06:18:31 +0000 (18:18 +1200)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Wed, 22 Sep 2021 22:35:44 +0000 (10:35 +1200)
commit72379673cc446de68d7b68e2173112f6693ca8aa
treee52378f83f5b0b2a00881166e984f1f404467268
parent208fd720610d7d99e73efe57eda8ef2f3957ceff
dev/core#2814 fix tokenCompat to be consistent with unresolved tokens

This fixes the tokenCompat subscriber to replace unresolved tokens with a
blank string in a consistent way.

Prior to this it would crash if smarty was enabled but not all tokens
were resolved & print unresolved tokens if smarty was not enabled.

The inconsistencies appear to be due to 'separate evolution' rather than '*reasons*'
Civi/Token/TokenCompatSubscriber.php
tests/phpunit/CRM/Activity/Form/Task/PDFLetterCommonTest.php
tests/phpunit/CRM/Core/BAO/MessageTemplateTest.php