export error fixes for multi-select contact reference custom field
authorKurund Jalmi <kurund.jalmi@gmail.com>
Mon, 25 Jul 2022 16:19:17 +0000 (17:19 +0100)
committerGitHub <noreply@github.com>
Mon, 25 Jul 2022 16:19:17 +0000 (17:19 +0100)
CRM/Export/BAO/ExportProcessor.php

index 18a5663ff8d6180c75840ad2a1dcb7b22a1d20b7..263931c27b6ef9665e0013d2df911a754bbcb590 100644 (file)
@@ -1456,7 +1456,7 @@ class CRM_Export_BAO_ExportProcessor {
         case CRM_Utils_Type::T_INT:
         case CRM_Utils_Type::T_BOOLEAN:
           if (in_array(CRM_Utils_Array::value('data_type', $fieldSpec), ['Country', 'StateProvince', 'ContactReference'])) {
-            return "`$fieldName` varchar(255)";
+            return "`$fieldName` text";
           }
           // some of those will be exported as a (localisable) string
           // @see https://lab.civicrm.org/dev/core/-/issues/2164