Skip to content

Commit 4eea4da

Browse files
committed
Merge branch '2.4-develop' into ACP2E-4156
2 parents c4b76ff + bd4aabb commit 4eea4da

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

app/code/Magento/CatalogImportExport/Model/Import/Product/Type/AbstractType.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,9 +266,10 @@ public function retrieveAttribute($attributeCode, $attributeSet)
266266
protected function _getProductAttributes($attrSetData)
267267
{
268268
if (is_array($attrSetData)) {
269-
return $this->_attributes[$attrSetData[Product::COL_ATTR_SET]];
269+
$setName = $attrSetData[Product::COL_ATTR_SET] ?? null;
270+
return $setName !== null && isset($this->_attributes[$setName]) ? $this->_attributes[$setName] : [];
270271
} else {
271-
return $this->_attributes[$attrSetData];
272+
return isset($this->_attributes[$attrSetData]) ? $this->_attributes[$attrSetData] : [];
272273
}
273274
}
274275

0 commit comments

Comments
 (0)