(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>
Mon, 22 May 2023 05:26:34 +0000 (22:26 -0700)
commit54f20c4b3220f3b0be742a773eaafa2070a940bb
tree6ad650298f1f0726b275ddfea28a6063ab2bc764
parentc7928d093b4507e8f1d73ffe5cc5bcf4c40ac93b
(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