dev/core#2650 switch contact.individual_prefix tokens to contact.prefix_id:label
authorEileen McNaughton <emcnaughton@wikimedia.org>
Sat, 2 Oct 2021 09:40:02 +0000 (22:40 +1300)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Sun, 3 Oct 2021 07:05:30 +0000 (20:05 +1300)
commit2f7db7187b78440657c706a3687148a28f874d9f
tree218db387b87342efadb784fa1b9fcc47a60bfffd
parented72890e9be523b884e1f56f17bc60107d2e9218
dev/core#2650 switch contact.individual_prefix tokens to contact.prefix_id:label

The token processor code was updated to handle the label syntax in
https://github.com/civicrm/civicrm-core/pull/21570 with tests added.
The greeting processing still doesn't go through the token processor.
I'm trying to fix that but that change has a few moving parts so
chasing out our last reference to contact.prefix_id in this PR
and also doing the DB updates to switch over to use the preferred
tokens and make them work with
replaceGreetingTokens (albeit hopefully in the
short-ish term we will stop using that function)
CRM/Upgrade/Incremental/Base.php
CRM/Upgrade/Incremental/MessageTemplates.php
CRM/Upgrade/Incremental/php/FiveFortyThree.php
CRM/Utils/Token.php
api/v3/examples/Mailing/GetTokens.ex.php
api/v3/examples/Setting/GetFields.ex.php
sql/civicrm_generated.mysql
tests/phpunit/CRM/Core/BAO/MessageTemplateTest.php
tests/phpunit/CRM/Utils/TokenTest.php
tests/phpunit/api/v3/dataset/option_value_email_greeting.xml
xml/templates/civicrm_data.tpl