From 65edc95824bbf80a34bfa982c22888856f8389e9 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Mon, 21 Nov 2022 18:22:46 -0500 Subject: [PATCH] Add default label field for RelationshipType entity --- CRM/Contact/DAO/RelationshipType.php | 9 ++++++++- xml/schema/Contact/RelationshipType.xml | 1 + 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CRM/Contact/DAO/RelationshipType.php b/CRM/Contact/DAO/RelationshipType.php index f6e38b7502..468c407521 100644 --- a/CRM/Contact/DAO/RelationshipType.php +++ b/CRM/Contact/DAO/RelationshipType.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Contact/RelationshipType.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:680a2fbbd44fcd6debcfc48b61e1a8fa) + * (GenCodeChecksum:94465b186c3015c6aa8c725c44b9c103) */ /** @@ -23,6 +23,13 @@ class CRM_Contact_DAO_RelationshipType extends CRM_Core_DAO { */ public static $_tableName = 'civicrm_relationship_type'; + /** + * Field to show when displaying a record. + * + * @var string + */ + public static $_labelField = 'label_a_b'; + /** * Should CiviCRM log any modifications to this table in the civicrm_log table. * diff --git a/xml/schema/Contact/RelationshipType.xml b/xml/schema/Contact/RelationshipType.xml index 18b617012d..e2f0b0503f 100644 --- a/xml/schema/Contact/RelationshipType.xml +++ b/xml/schema/Contact/RelationshipType.xml @@ -4,6 +4,7 @@ CRM/Contact RelationshipType civicrm_relationship_type + label_a_b Relationship types s/b structured with contact_a as the 'subject/child' contact and contact_b as the 'object/parent' contact (e.g. Individual A is Employee of Org B). 1.1 -- 2.25.1