A free open source IT asset/license management system
Fix importer field mapping for command line
Ivan Nieto Vivancoc59fd7b8dabf
diff --git a/app/Importer/Importer.php b/app/Importer/Importer.phpindex f5b0ae44da..203e788d23 100644--- a/app/Importer/Importer.php+++ b/app/Importer/Importer.php@@ -56,7 +56,7 @@ abstract class Importer'reassignable' => 'reassignable','requestable' => 'requestable','seats' => 'seats',- 'serial_number' => 'serial number',+ 'serial' => 'serial number','status' => 'status','supplier' => 'supplier','termination_date' => 'termination date',diff --git a/app/Importer/ItemImporter.php b/app/Importer/ItemImporter.phpindex 5d8005ff21..f015de04d9 100644--- a/app/Importer/ItemImporter.php+++ b/app/Importer/ItemImporter.php@@ -90,7 +90,7 @@ class ItemImporter extends Importer$this->item['qty'] = $this->findCsvMatch($row, 'quantity');$this->item['requestable'] = $this->findCsvMatch($row, 'requestable');$this->item['user_id'] = $this->user_id;- $this->item['serial'] = $this->findCsvMatch($row, 'serial');+ $this->item['serial'] = $this->findCsvMatch($row, 'serial number');// NO need to call this method if we're running the user import.// TODO: Merge these methods.$this->item['checkout_class'] = $this->findCsvMatch($row, 'checkout_class');