From 6c2921841cc1df0c5dfb0bf7123c9c3e1ea53102 Mon Sep 17 00:00:00 2001 From: Tim Mallezie Date: Thu, 12 Feb 2015 15:55:29 +0100 Subject: [PATCH] add context all, to get all relations of contact in ajax call --- CRM/Contact/BAO/Relationship.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CRM/Contact/BAO/Relationship.php b/CRM/Contact/BAO/Relationship.php index 6bae9c63be..74c745308e 100644 --- a/CRM/Contact/BAO/Relationship.php +++ b/CRM/Contact/BAO/Relationship.php @@ -39,7 +39,11 @@ class CRM_Contact_BAO_Relationship extends CRM_Contact_DAO_Relationship { * * @var int */ +<<<<<<< HEAD const PAST = 1, DISABLED = 2, CURRENT = 4, INACTIVE = 8; +======= + CONST ALL = 0, PAST = 1, DISABLED = 2, CURRENT = 4, INACTIVE = 8; +>>>>>>> add context all, to get all relations of contact in ajax call /** * Create function. (Use the API instead) @@ -1754,6 +1758,9 @@ AND cc.sort_name LIKE '%$name%'"; if ($params['context'] == 'past') { $relationshipStatus = CRM_Contact_BAO_Relationship::INACTIVE; } + else if ($params['context'] == 'all') { + $relationshipStatus = CRM_Contact_BAO_Relationship::ALL; + } else { $relationshipStatus = CRM_Contact_BAO_Relationship::CURRENT; } -- 2.25.1