Skip to content

A free open source IT asset/license management system

add is_null acheck to import hanlder for custom fields

Godfrey Mc36236b7dc7a
diff --git a/app/Importer/AssetImporter.php b/app/Importer/AssetImporter.php
index 1d03d6f95b..86cb8e5d02 100644
--- a/app/Importer/AssetImporter.php
+++ b/app/Importer/AssetImporter.php
@@ -40,7 +40,7 @@ class AssetImporter extends ItemImporter
// ItemImporter handles the general fetching.
parent::handle($row);
- if ($this->customFields) {
+ if (!is_null($this->customFields)) {
foreach ($this->customFields as $customField) {
$customFieldValue = $this->array_smart_custom_field_fetch($row, $customField);