From f506227fb60d1969658a315b45a5669eef1593f1 Mon Sep 17 00:00:00 2001 From: Mathieu Lutfy Date: Mon, 9 May 2016 14:33:12 -0400 Subject: [PATCH] CRM-18524: Fix db error when exporting contributions (phone_type_id is not a real ID field). --- 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 85e660f3e2..3fd75e4a29 100644 --- a/CRM/Export/BAO/Export.php +++ b/CRM/Export/BAO/Export.php @@ -1346,7 +1346,7 @@ INSERT INTO {$componentTable} SELECT distinct gc.contact_id FROM civicrm_group_c // to accommodate different systems - CRM-13739 static $notRealIDFields = NULL; if ($notRealIDFields == NULL) { - $notRealIDFields = array('trxn_id', 'componentpaymentfield_transaction_id'); + $notRealIDFields = array('trxn_id', 'componentpaymentfield_transaction_id', 'phone_type_id'); } if (in_array($fieldName, $notRealIDFields)) { -- 2.25.1