CustomGroup - Add metadata about which types of entities support multi-record custom...
authorcolemanw <coleman@civicrm.org>
Thu, 21 Sep 2023 19:16:24 +0000 (15:16 -0400)
committercolemanw <coleman@civicrm.org>
Wed, 27 Sep 2023 00:21:08 +0000 (20:21 -0400)
commitd3026f24c871580e24ae3bb2d48a992a784fc8b2
tree3b33bcce9c581b4a8279ef9b31709750a51f8be8
parent85bcab804104080f6c60a33eb3774db9e12b1112
CustomGroup - Add metadata about which types of entities support multi-record custom fields

This is still only enabled for contacts, but now the switch could be flipped for other entities.
Refactors the custom group form to be metadata-driven & respect the new setting (and cleanup lots of cruft).
17 files changed:
CRM/Contact/BAO/ContactType.php
CRM/Core/BAO/CustomGroup.php
CRM/Core/BAO/CustomValue.php
CRM/Core/DAO/CustomGroup.php
CRM/Core/Form.php
CRM/Custom/Form/Group.php
CRM/Utils/Array.php
Civi/Api4/Generic/Traits/DAOActionTrait.php
Civi/Api4/Provider/CustomEntityProvider.php
Civi/Api4/Service/Schema/Joinable/CustomGroupJoinable.php
Civi/Api4/Service/Spec/Provider/CustomValueSpecProvider.php
Civi/Api4/Utils/CoreUtil.php
api/v3/CustomGroup.php
sql/civicrm_data/civicrm_option_group/custom_data_type.sqldata.php
templates/CRM/Custom/Form/Group.tpl
tests/phpunit/api/v4/Action/GetFieldsTest.php
xml/schema/Core/CustomGroup.xml