Skip to content

Commit

Permalink
Merge pull request #11961 from colemanw/CRM-21843
Browse files Browse the repository at this point in the history
CRM-21843 - Fix export of case activities
  • Loading branch information
eileenmcnaughton authored Apr 9, 2018
2 parents 4c71a8b + 2b47755 commit fce4583
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions CRM/Export/BAO/Export.php
Original file line number Diff line number Diff line change
Expand Up @@ -1906,13 +1906,8 @@ public static function setHeaderRows($field, $headerRows, $sqlColumns, $query, $
elseif ($field == 'provider_id') {
$headerRows[] = ts('IM Service Provider');
}
elseif (substr($field, 0, 5) == 'case_') {
if ($query->_fields['case'][$field]['title']) {
$headerRows[] = $query->_fields['case'][$field]['title'];
}
elseif ($query->_fields['activity'][$field]['title']) {
$headerRows[] = $query->_fields['activity'][$field]['title'];
}
elseif (substr($field, 0, 5) == 'case_' && $query->_fields['case'][$field]['title']) {
$headerRows[] = $query->_fields['case'][$field]['title'];
}
elseif (array_key_exists($field, $contactRelationshipTypes)) {
foreach ($value as $relationField => $relationValue) {
Expand Down

0 comments on commit fce4583

Please sign in to comment.