From: monishdeb Date: Mon, 21 Sep 2015 13:49:45 +0000 (+0530) Subject: Revert "revert CRM-16711 fix " X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=468da094afdf4542660dc3f90486b47dd1e5c8f0;p=civicrm-core.git Revert "revert CRM-16711 fix " This reverts commit 1ca927cc816b21e779ebc0e9e5e2dd3bd275debd. --- 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':