APIv4 - Fix getFields to respect default_value from getFields
authorColeman Watts <coleman@civicrm.org>
Wed, 2 Jun 2021 19:09:10 +0000 (15:09 -0400)
committerColeman Watts <coleman@civicrm.org>
Wed, 2 Jun 2021 19:09:10 +0000 (15:09 -0400)
commit88620a599c1386daa8ecc874b0e83f3356128d45
tree6d86f4165f7b09244e5e0a7a465b84394d3f3d29
parentbedd447516b408ef84d5eae88f3fbf1f3ebc2581
APIv4 - Fix getFields to respect default_value from getFields

GetFields had an odd way of setting defaults for field metadata;
this reuses the default_value property instead for more internal consistency.
CRM/Core/DAO/CustomGroup.php
Civi/Api4/Generic/BasicGetFieldsAction.php
xml/schema/Core/CustomGroup.xml