From cad8453e7c75fcae23b35bd5f2dbfc5be1ff1db7 Mon Sep 17 00:00:00 2001 From: Jamie McClelland Date: Fri, 25 Feb 2022 14:04:06 -0500 Subject: [PATCH] Enable APIv4 export action on UFGroup and UFField. With these little changes the export action is available. It still needs a tweak because UFField exports `field_name` which hard codes a custom field's id instead of `field_name:name` - but I think it's a good first step. --- Civi/Api4/UFField.php | 1 + Civi/Api4/UFGroup.php | 1 + 2 files changed, 2 insertions(+) diff --git a/Civi/Api4/UFField.php b/Civi/Api4/UFField.php index 01479ada1eb2..df435c595a02 100644 --- a/Civi/Api4/UFField.php +++ b/Civi/Api4/UFField.php @@ -22,5 +22,6 @@ */ class UFField extends Generic\DAOEntity { use Generic\Traits\SortableEntity; + use Generic\Traits\ManagedEntity; } diff --git a/Civi/Api4/UFGroup.php b/Civi/Api4/UFGroup.php index 0500e015e7ea..f97261ccbdba 100644 --- a/Civi/Api4/UFGroup.php +++ b/Civi/Api4/UFGroup.php @@ -19,5 +19,6 @@ * @package Civi\Api4 */ class UFGroup extends Generic\DAOEntity { + use Generic\Traits\ManagedEntity; }