From: Herb v/d Dool Date: Thu, 12 Jan 2023 17:04:29 +0000 (-0500) Subject: dev/drupal#153 include name when fetching UFGroups so validation can use it X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=9dd72c2d5f104d6dd90acb7e9d0bced0ede39c8b;p=civicrm-core.git dev/drupal#153 include name when fetching UFGroups so validation can use it --- 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';