-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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 #20840
Missed form validation in Admin Order Address Edit route sales/order/address #20840
Conversation
…oute sales/order/address
Hi @XxXgeoXxX. Thank you for your contribution
For more details, please, review the Magento Contributor Assistant documentation |
…oute sales/order/address
Hey @XxXgeoXxX Could you please consider covering your improvement with automated tests? I would suggest adding MFTF negative tests. |
Hi, @slavvka |
…oute sales/order/address
…oute sales/order/address
dev/tests/functional/tests/app/Magento/Customer/Test/Repository/Address.xml
Outdated
Show resolved
Hide resolved
…oute sales/order/address
Hey @XxXgeoXxX I can see you added changes. Did you run your MFTF test locally? |
Hi, yes. I saw that I got merge conflict. Maybe I have not up to day branch. I will resolve it. |
…oute sales/order/address
@slavvka |
Hi @slavvka, thank you for the review. |
c06d0d0
to
b039346
Compare
b039346
to
5867a48
Compare
Hi @XxXgeoXxX, thank you for your contribution! |
… sales/order/address #20840
Original Issue #19360
Description (*)
Magento 2.2.* and 2.3.*
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/
Note: added classes for inputs according to validation rules for attribute
Manual testing scenarios (*)
Create an order
Find the order in admin
Click edit on address section
Fill the field firstname or lastname with any characters till length be more than 255
Save address and see saved value
Contribution checklist (*)