Skip to content

Commit

Permalink
Merge pull request #9187 from sqweets/ExportHeadersRelationships
Browse files Browse the repository at this point in the history
CRM-19472 - Export headers for relationships are in machine name format
  • Loading branch information
eileenmcnaughton authored Oct 14, 2016
2 parents 0d418e2 + 7404541 commit 251deab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CRM/Export/BAO/Export.php
Original file line number Diff line number Diff line change
Expand Up @@ -2058,7 +2058,6 @@ public static function setHeaderRows($field, $headerRows, $sqlColumns, $query, $
}
}
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'])) {
Expand Down Expand Up @@ -2116,6 +2115,7 @@ public static function setHeaderRows($field, $headerRows, $sqlColumns, $query, $
}
}
}
self::manipulateHeaderRows($headerRows, $contactRelationshipTypes);
}
elseif ($selectedPaymentFields && array_key_exists($field, self::componentPaymentFields())) {
$headerRows[] = CRM_Utils_Array::value($field, self::componentPaymentFields());
Expand Down

0 comments on commit 251deab

Please sign in to comment.