Merge pull request #22160 from colemanw/navigationPermission
[civicrm-core.git] / CRM / Import / ImportProcessor.php
index 79ddc3b640e357b5a8974f71f6a861ca61792a3c..27508e0aea17170f0993bdf9d7dca212e1ba5d24 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] ?? '';
   }
 
@@ -499,7 +500,7 @@ class CRM_Import_ImportProcessor {
    * @return bool
    */
   protected function isValidRelationshipKey($key) {
-    return !empty($this->getValidRelationships()[$key]) ? TRUE : FALSE;
+    return !empty($this->getValidRelationships()[$key]);
   }
 
   /**