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,7 +230,9 @@ class CustomField {
|
|||
$customFieldMapping = [];
|
||||
|
||||
foreach ($customFields as $customField) {
|
||||
$customFieldMapping[$customField->getName()] = 'custom_' . $customField->getId();
|
||||
if ($customField) {
|
||||
$customFieldMapping[$customField->getName()] = 'custom_' . $customField->getId();
|
||||
}
|
||||
}
|
||||
|
||||
return $customFieldMapping;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue