Skip to content

Commit

Permalink
Merge pull request #19782 from eileenmcnaughton/token
Browse files Browse the repository at this point in the history
Remove addressee, email_greeting_id, postal_greeting_id from exposed tokens
  • Loading branch information
eileenmcnaughton authored Mar 11, 2021
2 parents dfaeeac + 94cb957 commit d5a0c3c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
3 changes: 3 additions & 0 deletions CRM/Core/SelectValues.php
Original file line number Diff line number Diff line change
Expand Up @@ -619,6 +619,9 @@ public static function contactTokens() {
'legal_identifier',
'contact_sub_type',
'user_unique_id',
'addressee_id',
'email_greeting_id',
'postal_greeting_id',
];

$customFields = CRM_Core_BAO_CustomField::getFields(['Individual', 'Address']);
Expand Down
6 changes: 0 additions & 6 deletions tests/phpunit/CRM/Core/BAO/MessageTemplateTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,6 @@ public function testContactTokens(): void {
individual_suffix:II
formal_title:Dogsbody
communication_style:Formal
email_greeting_id:Dear {contact.first_name}
postal_greeting_id:Dear {contact.first_name}
addressee_id:{contact.individual_prefix}{ } {contact.first_name}{ }{contact.middle_name}{ }{contact.last_name}{ }{contact.individual_suffix}
job_title:Busy person
gender:Female
birth_date:December 31st, 1998
Expand Down Expand Up @@ -317,9 +314,6 @@ public function getAllContactTokens(): array {
'individual_suffix' => 'II',
'formal_title' => 'Dogsbody',
'communication_style' => 'Formal',
'email_greeting_id' => 1,
'postal_greeting_id' => 1,
'addressee_id' => 1,
'job_title' => 'Busy person',
'gender' => 'Female',
'birth_date' => '1998-12-31',
Expand Down

0 comments on commit d5a0c3c

Please sign in to comment.