From 468da094afdf4542660dc3f90486b47dd1e5c8f0 Mon Sep 17 00:00:00 2001 From: monishdeb Date: Mon, 21 Sep 2015 19:19:45 +0530 Subject: [PATCH] Revert "revert CRM-16711 fix " This reverts commit 1ca927cc816b21e779ebc0e9e5e2dd3bd275debd. --- CRM/Contact/BAO/Contact.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/CRM/Contact/BAO/Contact.php b/CRM/Contact/BAO/Contact.php index bc44a92bc6..6dc4da615b 100644 --- a/CRM/Contact/BAO/Contact.php +++ b/CRM/Contact/BAO/Contact.php @@ -2552,11 +2552,13 @@ AND civicrm_openid.is_primary = 1"; case 'rel': $result = CRM_Contact_BAO_Relationship::getRelationship($contactId, - CRM_Contact_BAO_Relationship::CURRENT + CRM_Contact_BAO_Relationship::CURRENT, + 0, 1 ); - return count($result); + return $result; case 'group': + return CRM_Contact_BAO_GroupContact::getContactGroup($contactId, "Added", NULL, TRUE); case 'log': -- 2.25.1