mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-02 08:21:09 -08:00
Updated importer to work with newer CSV Reader::getRecords() method
This commit is contained in:
parent
4be95eac4b
commit
d6f251e992
|
@ -120,7 +120,8 @@ abstract class Importer
|
||||||
public function import()
|
public function import()
|
||||||
{
|
{
|
||||||
$headerRow = $this->csv->fetchOne();
|
$headerRow = $this->csv->fetchOne();
|
||||||
$results = $this->normalizeInputArray($this->csv->getRecords());
|
$this->csv->setHeaderOffset(0); //explicitly sets the CSV document header record
|
||||||
|
$results = $this->normalizeInputArray($this->csv->getRecords($headerRow));
|
||||||
|
|
||||||
$this->populateCustomFields($headerRow);
|
$this->populateCustomFields($headerRow);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue