APIv4 - Enable exporting profiles with custom fields
authorColeman Watts <coleman@civicrm.org>
Fri, 17 Jun 2022 01:18:03 +0000 (21:18 -0400)
committerColeman Watts <coleman@civicrm.org>
Fri, 17 Jun 2022 16:36:16 +0000 (12:36 -0400)
commitf0f23db7266b9b19030425b5afb50de9f38bd9f4
tree8e76b179c3252eb0cf315c8aa8295ebf5773d8fa
parenta2b0ecbe0a27b9f35fb0bd4c1c7b72ff2f4dc832
APIv4 - Enable exporting profiles with custom fields

Before: Impossible to export a profile with custom fields as a managed entity because of the dependence on custom ids as the fieldname.

After: Uses APIv4-style names when exporting custom fields for profiles, which makes them portable.
CRM/Core/BAO/UFField.php
CRM/Core/DAO/UFField.php
Civi/Api4/Generic/ExportAction.php
tests/phpunit/api/v4/Custom/CustomProfileFieldTest.php [new file with mode: 0644]
tests/phpunit/api/v4/Custom/ExportCustomGroupTest.php
xml/schema/Core/UFField.xml