Fix for CSV import
This commit is contained in:
parent
068302a793
commit
9b730f846e
1 changed files with 4 additions and 0 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue