From c3bff9ab87cfb3979ec7a6f91a59d4a21fd4d6cc Mon Sep 17 00:00:00 2001 From: monishdeb Date: Thu, 16 Oct 2014 12:27:33 +0530 Subject: [PATCH] CRM-15439 fix - Regression of CRM-13149 - searching on reciprocal relationships https://issues.civicrm.org/jira/browse/CRM-15439 --- CRM/Contact/BAO/Query.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'; -- 2.25.1