CRM-19471 - Custom relationships for custom contact types not available during export
authorEllen Hendricks <ellen.hendricks@sprydigital.com>
Fri, 14 Oct 2016 14:51:41 +0000 (09:51 -0500)
committerEllen Hendricks <ellen.hendricks@sprydigital.com>
Fri, 14 Oct 2016 14:51:41 +0000 (09:51 -0500)
----------------------------------------
* CRM-19471: Custom relationships for custom contact types not available during export
  https://issues.civicrm.org/jira/browse/CRM-19471

CRM/Core/BAO/Mapping.php

index 3c8494b6425d4a5e9f2399cace3ad5b19119b05e..7a43a95bc49c9440c457cebaadc1abb996255c90 100644 (file)
@@ -316,7 +316,7 @@ class CRM_Core_BAO_Mapping extends CRM_Core_DAO_Mapping {
       ksort($fields[$value]);
       if ($mappingType == 'Export') {
         $relationships = array();
-        $relationshipTypes = CRM_Contact_BAO_Relationship::getContactRelationshipType(NULL, NULL, NULL, $value);
+        $relationshipTypes = CRM_Contact_BAO_Relationship::getContactRelationshipType(NULL, NULL, NULL, $value, TRUE);
         asort($relationshipTypes);
 
         foreach ($relationshipTypes as $key => $var) {