Revert "revert CRM-16711 fix "
authormonishdeb <monish.deb@webaccessglobal.com>
Mon, 21 Sep 2015 13:49:45 +0000 (19:19 +0530)
committermonishdeb <monish.deb@webaccessglobal.com>
Mon, 5 Oct 2015 20:33:09 +0000 (02:03 +0530)
This reverts commit 1ca927cc816b21e779ebc0e9e5e2dd3bd275debd.

CRM/Contact/BAO/Contact.php

index bc44a92bc6d007c031a7403b776e309e120a0c5b..6dc4da615bac278df9b0de972260bb85d05d0b8e 100644 (file)
@@ -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':