CRM-9877 - Revert prior patch which was unintentionally removing filters on contact...
authorDave Greenberg <dave@civicrm.org>
Mon, 3 Mar 2014 21:39:59 +0000 (13:39 -0800)
committerDave Greenberg <dave@civicrm.org>
Mon, 3 Mar 2014 21:39:59 +0000 (13:39 -0800)
----------------------------------------
* 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

index ff62ead6704b27e62b08acea3d533385088fe76b..d53b74bdebbabb9675a6513a2df48a7f72d3ba14 100644 (file)
@@ -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