dev/core#2817 towards deprecating legacy
authorEileen McNaughton <emcnaughton@wikimedia.org>
Mon, 6 Sep 2021 07:08:12 +0000 (19:08 +1200)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Mon, 6 Sep 2021 07:08:12 +0000 (19:08 +1200)
commit2f5c0408165e4d80e3aadfc6b3b374a0f106840e
tree3489246ae858199e5fafe856abfe8c7c14ec80ff
parentc4a677f650f11b1f783f012c95831191f421d8b8
dev/core#2817 towards deprecating legacy

This adds support for the syntax

{case.status_id:label} which what we agreed as a preferred syntax
to disambiguate the demands for labels vs ids vs machine names in
various implementations.

The new (preferred) label is advertised - but the old
one still works

See https://lab.civicrm.org/dev/core/-/issues/2817 for next steps
CRM/Core/SelectValues.php
CRM/Utils/Token.php
tests/phpunit/CRM/Utils/TokenConsistencyTest.php