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>
Fri, 2 Oct 2015 22:48:19 +0000 (04:18 +0530)
This reverts commit 1ca927cc816b21e779ebc0e9e5e2dd3bd275debd.

CRM/Contact/BAO/Contact.php

index 06cd9f22abe51b83d6f96b7fd82a3f1ee2cbe1e3..a465d71bd829a2a5be9075c9c87742f5e86fc43e 100644 (file)
@@ -2572,11 +2572,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':