Skip to content

Commit c36236b

Browse files
committed
add is_null acheck to import hanlder for custom fields
1 parent 6399433 commit c36236b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Importer/AssetImporter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ protected function handle($row)
4040
// ItemImporter handles the general fetching.
4141
parent::handle($row);
4242

43-
if ($this->customFields) {
43+
if (!is_null($this->customFields)) {
4444
foreach ($this->customFields as $customField) {
4545
$customFieldValue = $this->array_smart_custom_field_fetch($row, $customField);
4646

0 commit comments

Comments
 (0)