-
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
Amount of characters on a 'Area' Customizable Option counted differently on backend/frontend #25974
Comments
Hi @hans-vereyken. 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. @hans-vereyken do you confirm that you were able to reproduce the issue on vanilla Magento instance following steps to reproduce?
|
Hi @ajijshekh123. Thank you for working on this issue.
|
Give me @magento give me 2.4-develop instance |
Hi @ajijshekh123. Thank you for your request. I'm working on Magento 2.4-develop instance for you |
Hi @ajijshekh123, here is your Magento instance. |
✅ Confirmed by @ajijshekh123 Issue Available: @ajijshekh123, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself. |
Hi @Leone. Thank you for working on this issue.
|
Hi @hans-vereyken. Thank you for your report.
The fix will be available with the upcoming 2.4.0 release. |
Preconditions (*)
Steps to reproduce (*)
'Is
twenty
characters'
=> Ok on front, but error on adding to cart: 'The text is too long.'
Expected result (*)
Actual result (*)
Summary
The Javascript validator counts newlines as a single character (\n).
On the server side (\Magento\Catalog\Model\Product\Option\Type\maxCharacters) newlines are counted as 2 characters (\r\n).
The text was updated successfully, but these errors were encountered: