Refresh entity list after updating custom group (self_hook_*)
authorTim Otten <totten@civicrm.org>
Wed, 2 Mar 2022 03:02:22 +0000 (19:02 -0800)
committerTim Otten <totten@civicrm.org>
Wed, 2 Mar 2022 03:11:03 +0000 (19:11 -0800)
commita1379c2c10953851dd309c6a4c16e39db0ae2fe3
tree201b062f1d1847f1ceb1b3a44df70ed14deec339
parentf9f085b81c8b6e697605d04c65d3ce970e3f113a
Refresh entity list after updating custom group (self_hook_*)

Overview
----------------------------------------

The CustomGroups are used to generate virtual entities (if they set `is_multiple`). Toggling `is_multiple`
should cause the virtual entity to be added or removed.

Reproduction steps
----------------------------------------

1. Create a custom data group. Leave default `is_multiple=0`.
2. View "API Explorer". Look for the virtual entity. (It's not there. Properly so.)
3. Edit custom data group. Change to `is_multiple=1`.
4. Reload "API Explorer". Look for the virtual entity.

Before
----------------------------------------

The entity does not appear. You have to do a system-flush.

After
----------------------------------------

The entity does appear.
CRM/Core/BAO/CustomGroup.php