Skip to content

Commit c68f81d

Browse files
authored
Merge pull request #18113 from Godmartinz/customfieldvalue-in-importer-fix
Adds #17433 `is_null` check to import handler for custom fields
2 parents ac8e341 + e4f8c1b commit c68f81d

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
@@ -44,7 +44,7 @@ protected function handle($row)
4444
foreach ($this->customFields as $customField) {
4545
$customFieldValue = $this->array_smart_custom_field_fetch($row, $customField);
4646

47-
if ($customFieldValue) {
47+
if (!is_null($customFieldValue)) {
4848
if ($customField->field_encrypted == 1) {
4949
$this->item['custom_fields'][$customField->db_column_name()] = Crypt::encrypt($customFieldValue);
5050
$this->log('Custom Field '.$customField->name.': '.Crypt::encrypt($customFieldValue));

0 commit comments

Comments
 (0)