mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fix for CSV import
This commit is contained in:
parent
068302a793
commit
9b730f846e
@ -657,6 +657,10 @@ class ImportService
|
|||||||
{
|
{
|
||||||
$this->checkForFile($fileName);
|
$this->checkForFile($fileName);
|
||||||
|
|
||||||
|
if (! ini_get('auto_detect_line_endings')) {
|
||||||
|
ini_set('auto_detect_line_endings', '1');
|
||||||
|
}
|
||||||
|
|
||||||
$csv = Reader::createFromPath($fileName, 'r');
|
$csv = Reader::createFromPath($fileName, 'r');
|
||||||
//$csv->setHeaderOffset(0); //set the CSV header offset
|
//$csv->setHeaderOffset(0); //set the CSV header offset
|
||||||
$stmt = new Statement();
|
$stmt = new Statement();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user