----------------------------------------
* CRM-19471: Custom relationships for custom contact types not available during export
https://issues.civicrm.org/jira/browse/CRM-19471
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) {