From 05d0f731bd6eb971b1c1ee7455cc58d870a6745d Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Wed, 17 Aug 2022 16:02:29 -0400 Subject: [PATCH] RelationshipCache - Add metadata for afform --- CRM/Contact/DAO/RelationshipCache.php | 5 ++++- xml/schema/Contact/RelationshipCache.xml | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CRM/Contact/DAO/RelationshipCache.php b/CRM/Contact/DAO/RelationshipCache.php index 33fdc4ebec..c1ddd69b81 100644 --- a/CRM/Contact/DAO/RelationshipCache.php +++ b/CRM/Contact/DAO/RelationshipCache.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Contact/RelationshipCache.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:79cb98a7730bede29ea2cf1aeb5a780e) + * (GenCodeChecksum:3f113a0869fa2a649d0e6044a8e59572) */ /** @@ -305,6 +305,7 @@ class CRM_Contact_DAO_RelationshipCache extends CRM_Core_DAO { 'bao' => 'CRM_Contact_BAO_RelationshipCache', 'localizable' => 0, 'html' => [ + 'type' => 'Select', 'label' => ts("Relationship to contact"), ], 'pseudoconstant' => [ @@ -345,6 +346,7 @@ class CRM_Contact_DAO_RelationshipCache extends CRM_Core_DAO { 'bao' => 'CRM_Contact_BAO_RelationshipCache', 'localizable' => 0, 'html' => [ + 'type' => 'Select', 'label' => ts("Relationship from contact"), ], 'pseudoconstant' => [ @@ -419,6 +421,7 @@ class CRM_Contact_DAO_RelationshipCache extends CRM_Core_DAO { 'FKClassName' => 'CRM_Case_DAO_Case', 'component' => 'CiviCase', 'html' => [ + 'type' => 'EntityRef', 'label' => ts("Case"), ], 'readonly' => TRUE, diff --git a/xml/schema/Contact/RelationshipCache.xml b/xml/schema/Contact/RelationshipCache.xml index 62d9ea1d2f..7421611dbc 100644 --- a/xml/schema/Contact/RelationshipCache.xml +++ b/xml/schema/Contact/RelationshipCache.xml @@ -115,6 +115,7 @@ 5.29 + Select CRM_Core_PseudoConstant::relationshipTypeOptions @@ -152,6 +153,7 @@ 5.29 + Select CRM_Core_PseudoConstant::relationshipTypeOptions @@ -237,6 +239,7 @@ FK to civicrm_case + EntityRef 5.44 true -- 2.25.1