X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FExport%2FBAO%2FExport.php;h=adc47cadee6e892e4173551f793d9fc60e5e8ee8;hb=bea65ab6b74bc99eeaca9ad2adec06612e6921c8;hp=c560444b4b537e2210255228f713ae48059b0fd3;hpb=9fae97359994afa3f66e7c6d805bc292f59a5967;p=civicrm-core.git diff --git a/CRM/Export/BAO/Export.php b/CRM/Export/BAO/Export.php index c560444b4b..adc47cadee 100644 --- a/CRM/Export/BAO/Export.php +++ b/CRM/Export/BAO/Export.php @@ -1,7 +1,7 @@ $field) as $k => $v) { - $viewRoles[] = $participantRoles[$v]; - } - $fieldValue = implode(',', $viewRoles); - } elseif ($field == 'master_id') { $masterAddressId = NULL; if (isset($iterationDAO->master_id)) { @@ -1330,7 +1359,8 @@ INSERT INTO {$componentTable} SELECT distinct gc.contact_id FROM civicrm_group_c // early exit for master_id, CRM-12100 // in the DB it is an ID, but in the export, we retrive the display_name of the master record - if ($fieldName == 'master_id') { + // also for current_employer, CRM-16939 + if ($fieldName == 'master_id' || $fieldName == 'current_employer') { $sqlColumns[$fieldName] = "$fieldName varchar(128)"; return; }