3
0
mirror of https://github.com/snipe/snipe-it.git synced 2025-10-29 19:31:41 +00:00

add is_null acheck to import hanlder for custom fields

This commit is contained in:
Godfrey M 2025-10-28 11:37:38 -07:00
parent 63994333d0
commit c36236b7dc

View File

@ -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);