Skip to content

Commit 313880f

Browse files
committed
ACP2E-4116: [CLOUD] Products with No Backorders selected on manage stock still allowing customers to order over our stock levels when imported
1 parent 94ee85d commit 313880f

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function isValid($value)
3131
}
3232

3333
$backorders = $value['allow_backorders'];
34-
if ($this->context->getEmptyAttributeValueConstant() === $backorders) {
34+
if (in_array($backorders, [$this->context->getEmptyAttributeValueConstant(), ''], true)) {
3535
return true;
3636
}
3737

0 commit comments

Comments
 (0)