From 8d4c6391a186360c85ca161f798cc2acdc6c2897 Mon Sep 17 00:00:00 2001 From: Dave Greenberg Date: Mon, 3 Mar 2014 13:39:59 -0800 Subject: [PATCH] CRM-9877 - Revert prior patch which was unintentionally removing filters on contact types when creating relationships. ---------------------------------------- * CRM-9877: Relationship type ommited in dropdown list when it's for all contacts http://issues.civicrm.org/jira/browse/CRM-9877 --- CRM/Contact/BAO/Relationship.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/CRM/Contact/BAO/Relationship.php b/CRM/Contact/BAO/Relationship.php index ff62ead670..d53b74bdeb 100644 --- a/CRM/Contact/BAO/Relationship.php +++ b/CRM/Contact/BAO/Relationship.php @@ -382,10 +382,6 @@ class CRM_Contact_BAO_Relationship extends CRM_Contact_DAO_Relationship { ) { $relationshipType[$key . '_a_b'] = $value["{$column}_a_b"]; } - elseif (empty($value['contact_type_b'])) { - // case contact_type_b is "all contacts", CRM-9877 - $relationshipType[$key . '_a_b'] = $value["{$column}_a_b"]; - } if (((!$value['contact_type_b']) || $value['contact_type_b'] == $contactType -- 2.25.1