Skip to content

Commit eed1e69

Browse files
committed
ACP2E-3660: REST endpoint Product Import Json not validate the mandatory fields
1 parent afc8e30 commit eed1e69

File tree

1 file changed

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

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -458,6 +458,7 @@ public function isValid($value)
458458
//prioritize specialized validation
459459
if ($validator->getFieldName() &&
460460
isset($validatedAttributes['attributes']) &&
461+
isset($validatedAttributes['attributes'][$validator->getFieldName()]) &&
461462
$validatedAttributes['attributes'][$validator->getFieldName()] === false
462463
) {
463464
$validatedAttributes['attributes'][$validator->getFieldName()] = true;

0 commit comments

Comments
 (0)