From 99268e6c2592422d596d8aea99e14d77314432c9 Mon Sep 17 00:00:00 2001 From: monishdeb Date: Fri, 26 Jun 2015 01:53:16 +0530 Subject: [PATCH] CRM-16741 fix - Invalid relationship is shown when selecting "relationship type" https://issues.civicrm.org/jira/browse/CRM-16741 --- CRM/Contact/BAO/Relationship.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/CRM/Contact/BAO/Relationship.php b/CRM/Contact/BAO/Relationship.php index b3577297b3..f6f5c6bd12 100644 --- a/CRM/Contact/BAO/Relationship.php +++ b/CRM/Contact/BAO/Relationship.php @@ -561,7 +561,6 @@ class CRM_Contact_BAO_Relationship extends CRM_Contact_DAO_Relationship { $value['contact_type_b'] == $otherContactType ) && (in_array($value['contact_sub_type_a'], $contactSubType) || - in_array($value['contact_sub_type_b'], $contactSubType) || (!$value['contact_sub_type_a'] && !$onlySubTypeRelationTypes) ) ) { @@ -576,7 +575,6 @@ class CRM_Contact_BAO_Relationship extends CRM_Contact_DAO_Relationship { $value['contact_type_a'] == $otherContactType ) && (in_array($value['contact_sub_type_b'], $contactSubType) || - in_array($value['contact_sub_type_a'], $contactSubType) || (!$value['contact_sub_type_b'] && !$onlySubTypeRelationTypes) ) ) { -- 2.25.1