From 8269c13e96669344c05253288943d09c93639ea9 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Sat, 16 Oct 2021 16:00:57 -0400 Subject: [PATCH] APIv4 - Add component metadata to Relationship.case_id field This will hide that field when CiviCase is disabled --- CRM/Contact/DAO/Relationship.php | 3 ++- xml/schema/Contact/Relationship.xml | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CRM/Contact/DAO/Relationship.php b/CRM/Contact/DAO/Relationship.php index 5c2783fcee..f1e76eb1ae 100644 --- a/CRM/Contact/DAO/Relationship.php +++ b/CRM/Contact/DAO/Relationship.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Contact/Relationship.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:402d6e2cc8ffa3be531d291a20f59560) + * (GenCodeChecksum:4d689d3ccc5aa155c858aac2f24ddfab) */ /** @@ -361,6 +361,7 @@ class CRM_Contact_DAO_Relationship extends CRM_Core_DAO { 'bao' => 'CRM_Contact_BAO_Relationship', 'localizable' => 0, 'FKClassName' => 'CRM_Case_DAO_Case', + 'component' => 'CiviCase', 'html' => [ 'label' => ts("Case"), ], diff --git a/xml/schema/Contact/Relationship.xml b/xml/schema/Contact/Relationship.xml index 9b8e55b313..9151dc12e5 100644 --- a/xml/schema/Contact/Relationship.xml +++ b/xml/schema/Contact/Relationship.xml @@ -169,6 +169,7 @@ case_id int unsigned + CiviCase Case ID NULL FK to civicrm_case -- 2.25.1