From 74045414056c69e52eaca88a32e9cfe2e0b61ad4 Mon Sep 17 00:00:00 2001 From: Ellen Hendricks Date: Fri, 14 Oct 2016 09:40:33 -0500 Subject: [PATCH] CRM-19472 Moved call to manipulateHeadeRows to right after the are built ---------------------------------------- * 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, 1 insertion(+), 2 deletions(-) diff --git a/CRM/Export/BAO/Export.php b/CRM/Export/BAO/Export.php index 5b1d2b686f..8be3c55b4e 100644 --- a/CRM/Export/BAO/Export.php +++ b/CRM/Export/BAO/Export.php @@ -2109,6 +2109,7 @@ WHERE {$whereClause}"; } } } + self::manipulateHeaderRows($headerRows, $contactRelationshipTypes); } elseif ($selectedPaymentFields && array_key_exists($field, self::componentPaymentFields())) { $headerRows[] = CRM_Utils_Array::value($field, self::componentPaymentFields()); @@ -2117,8 +2118,6 @@ WHERE {$whereClause}"; $headerRows[] = $field; } - self::manipulateHeaderRows($headerRows, $contactRelationshipTypes); - self::sqlColumnDefn($query, $sqlColumns, $field); return array($headerRows, $sqlColumns); -- 2.25.1