diff --git a/CRM/Export/BAO/Export.php b/CRM/Export/BAO/Export.php index 680843b4b..3c3e1849f 100644 --- a/CRM/Export/BAO/Export.php +++ b/CRM/Export/BAO/Export.php @@ -1567,7 +1567,11 @@ static function writeCSVFromTable($exportTempTable, $headerRows, $sqlColumns, $e $fieldValue = explode(self::VALUE_SEPARATOR, $fieldValue); $fieldValue = implode(self::DISPLAY_SEPARATOR, $fieldValue); } - $row[$column] = CRM_Utils_String::toNumber($fieldValue); + if(CRM_Utils_Type::validate($fieldValue, 'Int', False) && strlen($fieldValue) < 15){ + $row[$column] = CRM_Utils_String::toNumber($fieldValue); + }else{ + $row[$column] = $fieldValue; + } } $writer->addRow($row); }