Skip to content

Commit 324f6b8

Browse files
committed
ACP2E-3660: REST endpoint Product Import Json not validate the mandatory fields
1 parent 34d218a commit 324f6b8

File tree

1 file changed

+4
-1
lines changed
  • app/code/Magento/CatalogImportExport/Model/Import/Product/Validator

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@ class Name extends AbstractImportValidator implements RowValidatorInterface
1717
public function isValid($value)
1818
{
1919
$this->_clearMessages();
20-
if (!$this->hasNameValue($value) && !$this->hasCustomOptions($value) && $value['store_view_code'] != 'default') {
20+
if (!$this->hasNameValue($value) &&
21+
!$this->hasCustomOptions($value) &&
22+
(!isset($value['store_view_code']) || $value['store_view_code'] != 'default')
23+
) {
2124
$this->_addMessages(
2225
[
2326
sprintf(

0 commit comments

Comments
 (0)