From d1456dd6fd347e534cf455b4acaa84450f2b85f5 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Tue, 26 Aug 2014 00:22:58 +1200 Subject: [PATCH] CRM-14398 supplementary fix campaign in exports --- CRM/Export/BAO/Export.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Export/BAO/Export.php b/CRM/Export/BAO/Export.php index b1605f6367..3b82017915 100644 --- a/CRM/Export/BAO/Export.php +++ b/CRM/Export/BAO/Export.php @@ -627,7 +627,7 @@ INSERT INTO {$componentTable} SELECT distinct gc.contact_id FROM civicrm_group_c //@todo - it would be clearer to start defining output columns earlier in this function rather than stick with return properties until this point // as the array is not actually 'returnProperties' after the sql query is formed - making the alterations to it confusing foreach ($returnProperties as $key => $value) { - $outputColumns[$key] = 1; + $outputColumns[$key] = $value; if (substr($key, -11) == 'campaign_id') { // the field $dao->x_campaign_id_id holds the id whereas the field $dao->campaign_id // we want to insert it directly after campaign id -- 2.25.1