----------------------------------------
* CRM-19472: Export headers for relationships are in "machine name" format
https://issues.civicrm.org/jira/browse/CRM-19472
}
}
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'])) {
$headerRows[] = $field;
}
+ self::manipulateHeaderRows($headerRows, $contactRelationshipTypes);
+
self::sqlColumnDefn($query, $sqlColumns, $field);
return array($headerRows, $sqlColumns);