From 0a69ccdc4f7178ae4a46d492f79ddf1aa2806cd0 Mon Sep 17 00:00:00 2001 From: colemanw Date: Mon, 2 Oct 2023 01:14:16 -0400 Subject: [PATCH] ContactSummary - Add link to manage case in Relationships tab --- ...arch_Contact_Summary_Relationships.mgd.php | 39 +++++++++++++------ 1 file changed, 28 insertions(+), 11 deletions(-) diff --git a/managed/contactSummary/SavedSearch_Contact_Summary_Relationships.mgd.php b/managed/contactSummary/SavedSearch_Contact_Summary_Relationships.mgd.php index 52c7d2b648..c2739138b7 100644 --- a/managed/contactSummary/SavedSearch_Contact_Summary_Relationships.mgd.php +++ b/managed/contactSummary/SavedSearch_Contact_Summary_Relationships.mgd.php @@ -1,5 +1,22 @@ 'SavedSearch_Contact_Summary_Relationships', @@ -30,17 +47,7 @@ return [ 'orderBy' => [], 'where' => [], 'groupBy' => [], - 'join' => [ - [ - 'Contact AS RelationshipCache_Contact_far_contact_id_01', - 'LEFT', - [ - 'far_contact_id', - '=', - 'RelationshipCache_Contact_far_contact_id_01.id', - ], - ], - ], + 'join' => $joins, 'having' => [], ], ], @@ -229,6 +236,16 @@ return [ 'task' => '', 'condition' => [], ], + [ + 'entity' => 'Case', + 'action' => 'view', + 'join' => 'RelationshipCache_Case_case_id_01', + 'target' => '', + 'icon' => 'fa-folder-open', + 'text' => ts('Manage Case'), + 'style' => 'default', + 'condition' => [], + ], ], 'type' => 'menu', 'alignment' => 'text-right', -- 2.25.1