1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-19 16:01:34 +02:00

Fix for CSV import

This commit is contained in:
Hillel Coren 2018-05-29 08:43:08 +03:00
parent b9f51dd4e8
commit 6fe0b32409

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();