CRM-18524: Fix db error when exporting contributions (phone_type_id is not a real...
authorMathieu Lutfy <mathieu@bidon.ca>
Mon, 9 May 2016 18:33:12 +0000 (14:33 -0400)
committerMathieu Lutfy <mathieu@bidon.ca>
Mon, 9 May 2016 18:33:12 +0000 (14:33 -0400)
CRM/Export/BAO/Export.php

index 85e660f3e20894d6162c6df90a658f5325f2d0d7..3fd75e4a2933c91977529c7214af77fadc1c7b39 100644 (file)
@@ -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)) {