Skip to content

Commit 20094b7

Browse files
committed
magento-engcom/import-export-improvements#49: Add failure if sku is empty value constant
1 parent 51f4ac8 commit 20094b7

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -444,11 +444,7 @@ public function isRowValid(array $rowData, $rowNum, $isNewProduct = true)
444444
$error = false;
445445
$rowScope = $this->_entityModel->getRowScope($rowData);
446446
if (\Magento\CatalogImportExport\Model\Import\Product::SCOPE_NULL != $rowScope
447-
&& (
448-
!empty($rowData[\Magento\CatalogImportExport\Model\Import\Product::COL_SKU])
449-
|| $rowData[\Magento\CatalogImportExport\Model\Import\Product::COL_SKU]
450-
!== $this->_entityModel->getEmptyAttributeValueConstant()
451-
)
447+
&& !empty($rowData[\Magento\CatalogImportExport\Model\Import\Product::COL_SKU])
452448
) {
453449
foreach ($this->_getProductAttributes($rowData) as $attrCode => $attrParams) {
454450
// check value for non-empty in the case of required attribute?

0 commit comments

Comments
 (0)