From 397532f2cc5d111ab45fd8f6f4eb5adeea5a8b60 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Tue, 11 Apr 2023 11:13:50 -0400 Subject: [PATCH] Add labelField metadata for mapping entity Fixes dev/core#4226 --- CRM/Core/DAO/Mapping.php | 9 ++++++++- xml/schema/Core/Mapping.xml | 1 + 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CRM/Core/DAO/Mapping.php b/CRM/Core/DAO/Mapping.php index 9a4e3ad636..2f60c6d5a1 100644 --- a/CRM/Core/DAO/Mapping.php +++ b/CRM/Core/DAO/Mapping.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Core/Mapping.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:b25f314a77515ccdcff0c3bbf8e07fd2) + * (GenCodeChecksum:89c538397697d0633134470f9e8ac880) */ /** @@ -23,6 +23,13 @@ class CRM_Core_DAO_Mapping extends CRM_Core_DAO { */ public static $_tableName = 'civicrm_mapping'; + /** + * Field to show when displaying a record. + * + * @var string + */ + public static $_labelField = 'name'; + /** * Should CiviCRM log any modifications to this table in the civicrm_log table. * diff --git a/xml/schema/Core/Mapping.xml b/xml/schema/Core/Mapping.xml index f629d6b0d5..281a0bcd24 100644 --- a/xml/schema/Core/Mapping.xml +++ b/xml/schema/Core/Mapping.xml @@ -5,6 +5,7 @@ Mapping civicrm_mapping Store field mappings in import or export for reuse + name 1.2 id -- 2.25.1