Skip to content

A free open source IT asset/license management system

Fixed importer using previous row’s custom field

snipee8847753f475
diff --git a/app/Importer/AssetImporter.php b/app/Importer/AssetImporter.php
index 9bf15acf30..7518663098 100644
--- a/app/Importer/AssetImporter.php
+++ b/app/Importer/AssetImporter.php
@@ -30,6 +30,8 @@ class AssetImporter extends ItemImporter
if ($customFieldValue) {
$this->item['custom_fields'][$customField->db_column_name()] = $customFieldValue;
$this->log('Custom Field '. $customField->name.': '.$customFieldValue);
+ } else {
+ $this->item['custom_fields'][$customField->db_column_name()] = '';
}
}
}