Updated importer to work with newer CSV Reader::getRecords() method

This commit is contained in:
snipe 2019-05-24 11:44:57 -07:00
parent 4be95eac4b
commit d6f251e992

View file

@ -120,7 +120,8 @@ abstract class Importer
public function import()
{
$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);