Skip to content
Snippets Groups Projects
Commit 6ec6371e authored by Monish Deb's avatar Monish Deb
Browse files

EntityReference Custom field in export causes DB error : data too long

parent 300faa2b
Branches
No related tags found
No related merge requests found
......@@ -1448,7 +1448,7 @@ class CRM_Export_BAO_ExportProcessor {
switch ($type) {
case CRM_Utils_Type::T_INT:
case CRM_Utils_Type::T_BOOLEAN:
if (in_array($fieldSpec['data_type'] ?? NULL, ['Country', 'StateProvince', 'ContactReference'])) {
if (in_array($fieldSpec['data_type'] ?? NULL, ['Country', 'StateProvince', 'ContactReference', 'EntityReference'])) {
return "`$fieldName` text";
}
// some of those will be exported as a (localisable) string
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment