check custom field for NULL before insert it into custom field mapping
This commit is contained in:
parent
134e42240f
commit
c536312185
1 changed files with 3 additions and 1 deletions
|
@ -230,8 +230,10 @@ class CustomField {
|
||||||
$customFieldMapping = [];
|
$customFieldMapping = [];
|
||||||
|
|
||||||
foreach ($customFields as $customField) {
|
foreach ($customFields as $customField) {
|
||||||
|
if ($customField) {
|
||||||
$customFieldMapping[$customField->getName()] = 'custom_' . $customField->getId();
|
$customFieldMapping[$customField->getName()] = 'custom_' . $customField->getId();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return $customFieldMapping;
|
return $customFieldMapping;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue