From: Mathieu Lutfy Date: Mon, 9 May 2016 18:33:12 +0000 (-0400) Subject: CRM-18524: Fix db error when exporting contributions (phone_type_id is not a real... X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=f506227fb60d1969658a315b45a5669eef1593f1;p=civicrm-core.git CRM-18524: Fix db error when exporting contributions (phone_type_id is not a real ID field). --- 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)) {