From: Ellen Hendricks Date: Fri, 7 Oct 2016 23:09:55 +0000 (-0500) Subject: CRM-19472 - Export headers for relationships are in machine name format X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=8b0f1287a4ced4e3ef1e6d47ea404082df5f8ef6;p=civicrm-core.git 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 --- 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);