From: monishdeb Date: Thu, 16 Oct 2014 06:57:33 +0000 (+0530) Subject: CRM-15439 fix - Regression of CRM-13149 - searching on reciprocal relationships X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=c3bff9ab87cfb3979ec7a6f91a59d4a21fd4d6cc;p=civicrm-core.git CRM-15439 fix - Regression of CRM-13149 - searching on reciprocal relationships https://issues.civicrm.org/jira/browse/CRM-15439 --- diff --git a/CRM/Contact/BAO/Query.php b/CRM/Contact/BAO/Query.php index a1a70ae095..ac81f718ad 100644 --- a/CRM/Contact/BAO/Query.php +++ b/CRM/Contact/BAO/Query.php @@ -4059,7 +4059,7 @@ WHERE id IN ( $groupIDs ) $params = array('id' => $rel[0]); $rType = CRM_Contact_BAO_RelationshipType::retrieve($params, $rTypeValues); } - if (empty($rTypeValues)) { + if (!empty($rTypeValues) && $rTypeValues['name_a_b'] == $rTypeValues['name_b_a']) { // if we don't know which end of the relationship we are dealing with we'll create a temp table //@todo unless we are dealing with a target group self::$_relType = 'reciprocal';