Skip to content

Commit

Permalink
Refs #23887, Modify numeric type condition when long digit as export.
Browse files Browse the repository at this point in the history
  • Loading branch information
junsuwhy committed Oct 2, 2018
1 parent aa15158 commit c116134
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CRM/Export/BAO/Export.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit c116134

Please sign in to comment.