From 9dd72c2d5f104d6dd90acb7e9d0bced0ede39c8b Mon Sep 17 00:00:00 2001 From: Herb v/d Dool Date: Thu, 12 Jan 2023 12:04:29 -0500 Subject: [PATCH] dev/drupal#153 include name when fetching UFGroups so validation can use it --- CRM/Core/BAO/UFGroup.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Core/BAO/UFGroup.php b/CRM/Core/BAO/UFGroup.php index e9bbdadb34..2734474898 100644 --- a/CRM/Core/BAO/UFGroup.php +++ b/CRM/Core/BAO/UFGroup.php @@ -1672,7 +1672,7 @@ AND ( entity_id IS NULL OR entity_id <= 0 ) * array of ufgroups for a module */ public static function getModuleUFGroup($moduleName = NULL, $count = 0, $skipPermission = TRUE, $op = CRM_Core_Permission::VIEW, $returnFields = NULL) { - $selectFields = ['id', 'title', 'created_id', 'is_active', 'is_reserved', 'group_type', 'description']; + $selectFields = ['id', 'name', 'title', 'created_id', 'is_active', 'is_reserved', 'group_type', 'description']; if (CRM_Core_BAO_SchemaHandler::checkIfFieldExists('civicrm_uf_group', 'frontend_title')) { $selectFields[] = 'frontend_title'; -- 2.25.1