Port asset history importer to league/csv9 (#5972)

This commit is contained in:
Daniel Meltzer 2018-07-26 15:04:21 -04:00 committed by snipe
parent 9618878023
commit 49d95892e3

View file

@ -573,9 +573,8 @@ class AssetsController extends Controller
$csv = Reader::createFromPath(Input::file('user_import_csv'));
$csv->setNewline("\r\n");
//get the first row, usually the CSV header
//$headers = $csv->fetchOne();
$results = $csv->fetchAssoc();
$csv->setHeaderOffset(0);
$results = $csv->getRecords();
$item = array();
$status = array();
$status['error'] = array();