Skip to content

A free open source IT asset/license management system

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

sniped6f251e99240
diff --git a/app/Importer/Importer.php b/app/Importer/Importer.php
index 4d4998507a..dcd9b98839 100644
--- a/app/Importer/Importer.php
+++ b/app/Importer/Importer.php
@@ -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);