(dev/core#4303) Allow {htxt} guard to accommodate variable ID
authorTim Otten <totten@civicrm.org>
Mon, 22 May 2023 04:48:57 +0000 (21:48 -0700)
committerTim Otten <totten@civicrm.org>
Tue, 23 May 2023 21:12:13 +0000 (14:12 -0700)
commite1d02f1354a105d96064e0799739fde94027bee8
tree451e50bf89ebe985c54a275839c07c6437cb95a4
parent36d56a3cf70ab99bf7a2aaa06fe3bba6318d36ba
(dev/core#4303) Allow {htxt} guard to accommodate variable ID

Before
------

`{htxt}` guard works with static IDs (`{htxt id="abc"}`)

After
-----

`{htxt}` guard with with variable ID (`{htxt id=$abc}`)

Comments
--------

As discussed in dev/core#4303, one relevant use-case comes from `CustomField.hlp`.

In my copy of universe, there's a similar construction in
`nz.co.fuzion.entitysetting` (`entitysettingscommon.hlp`).
CRM/Core/Smarty/plugins/prefilter.htxtFilter.php