From 0f7d64d0b763d9c98e5b55e9fb79e22b38465942 Mon Sep 17 00:00:00 2001 From: eileen Date: Mon, 12 Nov 2018 17:40:02 +1300 Subject: [PATCH] Export code cleanup -remove meaningless code --- CRM/Export/BAO/Export.php | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/CRM/Export/BAO/Export.php b/CRM/Export/BAO/Export.php index 00214262af..c5e82945f7 100644 --- a/CRM/Export/BAO/Export.php +++ b/CRM/Export/BAO/Export.php @@ -1400,17 +1400,7 @@ WHERE {$whereClause}"; foreach ($value as $relationField => $relationValue) { // below block is same as primary block (duplicate) if (isset($queryFields[$relationField]['title'])) { - if ($queryFields[$relationField]['name'] == 'name') { - $headerName = $field . '-' . $relationField; - } - else { - if ($relationField == 'current_employer') { - $headerName = $field . '-' . 'current_employer'; - } - else { - $headerName = $field . '-' . $relationField; - } - } + $headerName = $field . '-' . $relationField; if (!$processor->isHouseholdMergeRelationshipTypeKey($field)) { // Do not add to header row if we are only generating for merge reasons. -- 2.25.1