File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
app/code/Magento/CatalogImportExport/Model/Import Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2304,7 +2304,7 @@ public function validateRow(array $rowData, $rowNum)
2304
2304
2305
2305
$ sku = $ rowData [self ::COL_SKU ];
2306
2306
2307
- if (isset ($ this ->_oldSku [$ sku ])) {
2307
+ if (isset ($ this ->_oldSku [$ sku ]) && Import:: BEHAVIOR_REPLACE !== $ this -> getBehavior () ) {
2308
2308
// can we get all necessary data from existent DB product?
2309
2309
// check for supported type of existing product
2310
2310
if (isset ($ this ->_productTypeModels [$ this ->_oldSku [$ sku ]['type_id ' ]])) {
@@ -2356,7 +2356,7 @@ public function validateRow(array $rowData, $rowNum)
2356
2356
$ rowAttributesValid = $ productTypeValidator ->isRowValid (
2357
2357
$ rowData ,
2358
2358
$ rowNum ,
2359
- !isset ($ this ->_oldSku [$ sku ])
2359
+ !( isset ($ this ->_oldSku [$ sku ]) && Import:: BEHAVIOR_REPLACE !== $ this -> getBehavior () )
2360
2360
);
2361
2361
if (!$ rowAttributesValid && self ::SCOPE_DEFAULT == $ rowScope ) {
2362
2362
// mark SCOPE_DEFAULT row as invalid for future child rows if product not in DB already
You can’t perform that action at this time.
0 commit comments