Skip to content

Commit 22830e3

Browse files
committed
ACP2E-3660: REST endpoint Product Import Json not validate the mandatory fields
1 parent 5fda3e2 commit 22830e3

File tree

1 file changed

+0
-5
lines changed
  • app/code/Magento/CatalogImportExport/Model/Import/Product/Validator

1 file changed

+0
-5
lines changed

app/code/Magento/CatalogImportExport/Model/Import/Product/Validator/Name.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,11 @@ public function isValid($value)
3737
$skuExists = $this->skuStorage->has($value[Product::COL_SKU]);
3838
$hasCustomOptions = $this->hasCustomOptions($value);
3939
$hasNameValue = $this->hasNameValue($value);
40-
$isStoreViewCodeEmpty = !isset($value['store_view_code']) || $value['store_view_code'] === '';
4140

4241
if (!$skuExists && !$hasCustomOptions && !$hasNameValue) {
4342
return $this->invalidate();
4443
}
4544

46-
if (!$hasNameValue && !$hasCustomOptions && !$skuExists && $isStoreViewCodeEmpty) {
47-
return $this->invalidate();
48-
}
49-
5045
return true;
5146
}
5247

0 commit comments

Comments
 (0)