-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Removing Minimum Qty Allowed in Shopping Cart options triggers PHP error on Change Status Action #22927
Comments
Hi @Barakur. Thank you for your report.
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
For more details, please, review the Magento Contributor Assistant documentation. @Barakur do you confirm that you were able to reproduce the issue on vanilla Magento instance following steps to reproduce?
|
Hi @shikhamis11. Thank you for working on this issue.
|
This task was closed and marked as a duplicate but is only related in scope. The issue here even with the fixes from those issues still stands if a site does not have a default minimum quantity configuration set, which is still the case on both the 2.3 and 2.3-develop branches. The parenthesis noted in the initial comment of this issue will resolve the undefined offset error, while #17592 resolves the non-numeric errors. This fix should still be applied to prevent errors in this case. The fix for posterity once again:
|
Hi @shikhamis11. Thank you for working on this issue.
|
I can confirm this patch works as expected. The code is obviously semantically incorrect and doesn't really need verification. Please include patch in the next release. |
Hi @engcom-Charlie. Thank you for working on this issue.
|
✅ Confirmed by @engcom-Charlie Issue Available: @engcom-Charlie, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 14 days if no further activity occurs. Is this issue still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? Thank you for your contributions! |
Hi @Barakur. Thank you for your report and collaboration! The related internal Jira ticket The fix will be available with the upcoming |
Preconditions (*)
Steps to reproduce (*)
Expected result (*)
Actual result (*)
The problem ist the following line:
The cast to float takes precedence over the Null Coalesce Operator, therefore triggering the error. Change the line to
Adding parentheses is required to give the Null Coalesce Operator precedence over the float cast.
Maybe related to issue 21643.
The text was updated successfully, but these errors were encountered: