-
- Downloads
#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)
Showing
- CRM/Upgrade/Incremental/Base.php 17 additions, 1 deletionCRM/Upgrade/Incremental/Base.php
- CRM/Upgrade/Incremental/MessageTemplates.php 22 additions, 0 deletionsCRM/Upgrade/Incremental/MessageTemplates.php
- CRM/Upgrade/Incremental/php/FiveFortyThree.php 18 additions, 0 deletionsCRM/Upgrade/Incremental/php/FiveFortyThree.php
- CRM/Utils/Token.php 3 additions, 3 deletionsCRM/Utils/Token.php
- api/v3/examples/Mailing/GetTokens.ex.php 2 additions, 2 deletionsapi/v3/examples/Mailing/GetTokens.ex.php
- api/v3/examples/Setting/GetFields.ex.php 1 addition, 1 deletionapi/v3/examples/Setting/GetFields.ex.php
- sql/civicrm_generated.mysql 3676 additions, 3698 deletionssql/civicrm_generated.mysql
- tests/phpunit/CRM/Core/BAO/MessageTemplateTest.php 1 addition, 1 deletiontests/phpunit/CRM/Core/BAO/MessageTemplateTest.php
- tests/phpunit/CRM/Utils/TokenTest.php 2 additions, 2 deletionstests/phpunit/CRM/Utils/TokenTest.php
- tests/phpunit/api/v3/dataset/option_value_email_greeting.xml 6 additions, 6 deletionstests/phpunit/api/v3/dataset/option_value_email_greeting.xml
- xml/templates/civicrm_data.tpl 5 additions, 5 deletionsxml/templates/civicrm_data.tpl
Loading
Please register or sign in to comment