[Issue] Fix error message in StockItemValidator.php #31107
Labels
Area: Admin UI
Component: CatalogInventory
Issue: Confirmed
Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed
Priority: P3
May be fixed according to the position in the backlog.
Progress: done
Reported on 2.4.x
Indicates original Magento version for the Issue report.
Reproduced on 2.4.x
The issue has been reproduced on latest 2.4-develop branch
Severity: S3
Affects non-critical data or functionality and does not force users to employ a workaround.
Projects
This issue is automatically created based on existing pull request: #31058: Fix error message in StockItemValidator.php
This error message has previously been updated to misleading text and since then lacked the "greater". (see git history/blame)
According to validation logic of the enclosing "if", values of zero are not allowed and will throw this error.
Error got thrown when supplying stock item id with the value of zero during an API call and left the developer scratching his head.
The text was updated successfully, but these errors were encountered: