Fix for CSV import

This commit is contained in:
Hillel Coren 2018-05-29 08:42:56 +03:00
parent 068302a793
commit 9b730f846e

View File

@ -657,6 +657,10 @@ class ImportService
{
$this->checkForFile($fileName);
if (! ini_get('auto_detect_line_endings')) {
ini_set('auto_detect_line_endings', '1');
}
$csv = Reader::createFromPath($fileName, 'r');
//$csv->setHeaderOffset(0); //set the CSV header offset
$stmt = new Statement();