Closed
Description
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 (*)
- 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
Expected result (*)
- The errors should be shown e.g.
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. - Address should not be saved as in sales/order_create/index
Actual result (*)
Metadata
Metadata
Assignees
Labels
The issue has been fixed in 2.3 release lineGate 2 Passed. Manual verification of the issue description passedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedGate 1 Passed. Automatic verification of issue format passedGate 4. Acknowledged. Issue is added to backlog and ready for developmentThe issue has been reproduced on latest 2.2 releaseThe issue has been reproduced on latest 2.3 release