dev/core#1662 - Saved mappings doesn't work for all use cases
authorJitendra Purohit <jitendra@fuzion.co.nz>
Thu, 19 Mar 2020 10:29:41 +0000 (15:59 +0530)
committereileen <emcnaughton@wikimedia.org>
Thu, 19 Mar 2020 20:57:41 +0000 (09:57 +1300)
CRM/Import/ImportProcessor.php

index 79ddc3b640e357b5a8974f71f6a861ca61792a3c..be909595e7e9d542763ab7b092a1c358a7158837 100644 (file)
@@ -488,6 +488,7 @@ class CRM_Import_ImportProcessor {
    */
   protected function getNameFromLabel($label) {
     $titleMap = array_flip($this->getMetadataTitles());
+    $label = str_replace(' (match to contact)', '', $label);
     return $titleMap[$label] ?? '';
   }