-
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
Missed form validation in Admin Order Address Edit route sales/order/address #19360
Comments
Hi @ilnytskyi. 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:
where @ilnytskyi do you confirm that you was able to reproduce the issue on vanilla Magento instance following steps to reproduce?
|
Hi @engcom-backlog-andrii. Thank you for working on this issue.
|
@magento-engcom-team give me 2.2.5 instance |
Hi @ilnytskyi. Thank you for your request. I'm working on Magento 2.2.5 instance for you |
Hi @ilnytskyi, here is your Magento instance. |
@engcom-backlog-andrii Thank you for verifying the issue. Based on the provided information internal tickets |
Hi @viral-wagento. Thank you for working on this issue.
|
Hi @ravi-chandra3197. Thank you for working on this issue.
|
Hi @XxXgeoXxX. Thank you for working on this issue.
|
Hi @ilnytskyi. Thank you for your report.
The fix will be available with the upcoming 2.3.2 release. |
Preconditions (*)
Magento 2.2.*
EAV validation rules are not checked during editing an address in order.
route: sales/order/address
See column validate_rules in table customer_eav_attribute
e.g. name may have '{"max_text_length":255}'
Controller: \Magento\Sales\Controller\Adminhtml\Order\AddressSave::execute
This rules work in other forms on fronted and in address form and during creating new order from Admin
route: sales/order_create/index/
Steps to reproduce (*)
Expected result (*)
Shipping Address: "First Name" length must be equal or less than 255 characters.
Billing Address: "First Name" length must be equal or less than 255 characters.
Actual result (*)
UPD: so on the screenshot there is concatination with lastname.
Max length in DB is 255 so it relates to max value.
But if we set the rule to e.g. 100 symbols in customer_eav_attribute it's still possible to save 255 characters from this form
The text was updated successfully, but these errors were encountered: