Skip to content

Commit 24e4d63

Browse files
committed
ACP2E-3660: REST endpoint Product Import Json not validate the mandatory fields
1 parent 97fd1a3 commit 24e4d63

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ public function isValid($value)
3434
$this->_clearMessages();
3535
if (!$this->hasNameValue($value) &&
3636
!$this->hasCustomOptions($value) &&
37-
(!isset($value['store_view_code']) || $value['store_view_code'] != 'default') &&
3837
!$this->skuStorage->has($value[Product::COL_SKU])
3938
) {
4039
$this->_addMessages(
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
sku,url_key,name
2-
SimpleProductForTest1,SimpleProductAfterImport1-new,simple product for test
1+
sku,url_key
2+
SimpleProductForTest1,SimpleProductAfterImport1-new
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
sku,url_key,name
2-
simpleProduct,simpleProd,simple product
1+
sku,url_key
2+
simpleProduct,simpleProd

0 commit comments

Comments
 (0)