Remove phone_type_id from special handling per review
authoreileen <emcnaughton@wikimedia.org>
Thu, 13 Dec 2018 06:16:19 +0000 (19:16 +1300)
committereileen <emcnaughton@wikimedia.org>
Thu, 13 Dec 2018 07:57:42 +0000 (20:57 +1300)
CRM/Export/BAO/Export.php
tests/phpunit/CRM/Export/BAO/ExportTest.php

index b10d81c33e440061c65f4d1cf141043ba7ebe5ba..147e98acb24062ed81890b9b60819fcfbbf4dcb5 100644 (file)
@@ -1018,7 +1018,6 @@ WHERE  id IN ( $deleteIDString )
     $mappingFields = array(
       'civicrm_primary_id' => 'id',
       'provider_id' => 'im_service_provider',
-      'phone_type_id' => 'phone_type',
     );
 
     //figure out which columns are to be replaced by which ones
index f93a6e0a4b601e0b10478d87cae10fc86f52fb74..7f385b9ff26bc92557f1be529e3150b2e48060cb 100644 (file)
@@ -288,7 +288,7 @@ class CRM_Export_BAO_ExportTest extends CiviUnitTestCase {
       'membership_id' => $this->membershipIDs[0],
     ));
     $this->callAPISuccess('LineItem', 'get', [
-      'entity_table' =>'civicrm_membership',
+      'entity_table' => 'civicrm_membership',
       'membership_id' => $this->membershipIDs[0],
       'api.LineItem.create' => ['contribution_id' => $this->contributionIDs[0]],
     ]);