Skip to content

Commit 14effae

Browse files
authored
Update StockItemValidator.php
Error message has previously been updated to misleading text and lacked the "greater". According to validation logic, values of zero are not allowed and will throw this error.
1 parent f55f411 commit 14effae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/CatalogInventory/Model/StockItemValidator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public function validate(ProductInterface $product, StockItemInterface $stockIte
6767
throw new LocalizedException(
6868
__(
6969
'The "%1" value is invalid for stock item ID. '
70-
. 'Enter either zero or a number than zero to try again.',
70+
. 'Enter either null or a number greater than zero to try again.',
7171
$stockItemId
7272
)
7373
);

0 commit comments

Comments
 (0)