Fix sort_name & display_name settings to support new-style tokens
authorEileen McNaughton <emcnaughton@wikimedia.org>
Sat, 30 Sep 2023 07:15:00 +0000 (20:15 +1300)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Sat, 30 Sep 2023 07:15:00 +0000 (20:15 +1300)
commite9ccbb7169fabc0fe91e8187dfddcc3b4f8ec959
tree0d03a5ea68d6074c6ea0f69ed4e50fd441ec2131
parent83b028efc0cc4d9acec9e378691598ead91a3418
Fix sort_name & display_name settings to support new-style tokens

I was resistant to this change
https://github.com/civicrm/civicrm-core/pull/27114#issuecomment-1722110045

because it added another instance of '{individual_suffix}' - but this
PR makes both sort_name & display_name support the new style as well.

Unit tests lock in the old style & I have not put
pro-active upgrade in place - but we would want to before
fully moving over to tokens
CRM/Contact/BAO/Individual.php
CRM/Utils/Address.php
settings/Core.setting.php
tests/phpunit/CRM/Contact/BAO/IndividualTest.php