From 8b0f1287a4ced4e3ef1e6d47ea404082df5f8ef6 Mon Sep 17 00:00:00 2001 From: Ellen Hendricks Date: Fri, 7 Oct 2016 18:09:55 -0500 Subject: [PATCH] CRM-19472 - Export headers for relationships are in machine name format ---------------------------------------- * CRM-19472: Export headers for relationships are in "machine name" format https://issues.civicrm.org/jira/browse/CRM-19472 --- CRM/Export/BAO/Export.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CRM/Export/BAO/Export.php b/CRM/Export/BAO/Export.php index 85e660f3e2..5b1d2b686f 100644 --- a/CRM/Export/BAO/Export.php +++ b/CRM/Export/BAO/Export.php @@ -2052,7 +2052,6 @@ WHERE {$whereClause}"; } } elseif (array_key_exists($field, $contactRelationshipTypes)) { - self::manipulateHeaderRows($headerRows, $contactRelationshipTypes); foreach ($value as $relationField => $relationValue) { // below block is same as primary block (duplicate) if (isset($relationQuery[$field]->_fields[$relationField]['title'])) { @@ -2118,6 +2117,8 @@ WHERE {$whereClause}"; $headerRows[] = $field; } + self::manipulateHeaderRows($headerRows, $contactRelationshipTypes); + self::sqlColumnDefn($query, $sqlColumns, $field); return array($headerRows, $sqlColumns); -- 2.25.1