----------------------------------------
* CRM-14201: Contact Relationships tab needs pagination
http://issues.civicrm.org/jira/browse/CRM-14201
$where .= ' AND civicrm_relationship.contact_id_b = ' . CRM_Utils_Type::escape($contactId, 'Positive');
}
else {
- $where .= ' AND civicrm_relationship.contact_id_a = ' . CRM_Utils_Type::escape($contactId, 'Positive');
+ $where .= ' AND civicrm_relationship.contact_id_a = ' . CRM_Utils_Type::escape($contactId, 'Positive') . '
+ AND civicrm_relationship.contact_id_a != civicrm_relationship.contact_id_b ';
+
}
}
if ($relationshipId) {