better target multivalue checkbox and multiselect import validation
authorMichael McAndrew <michael@3sd.io>
Mon, 30 Aug 2021 14:59:30 +0000 (15:59 +0100)
committerMichael McAndrew <michael@3sd.io>
Mon, 30 Aug 2021 14:59:30 +0000 (15:59 +0100)
CRM/Contact/Import/Parser/Contact.php

index 70da80437072187982e4246b97210f369b22ea8a..bc5c30579728fbd7e01c41430fb7d213913679a7 100644 (file)
@@ -1068,7 +1068,7 @@ class CRM_Contact_Import_Parser_Contact extends CRM_Contact_Import_Parser {
           }
 
           // check for values for custom fields for checkboxes and multiselect
-          if ($isSerialized) {
+          if ($isSerialized && $dataType != 'ContactReference') {
             $value = trim($value);
             $value = str_replace('|', ',', $value);
             $mulValues = explode(',', $value);