Closed
Description
Preconditions
- any Magento 2 version
- have no telephone validation except than it's required
Steps to reproduce
- place an order
- enter a very wide telephone number (+20 characters)
- order
Expected result
- the very long telephone number should appear in the database as the field is 255 characters long in sales_order_address
Actual result
- the telephone number gets cut off after 20 characters as the quote_order_address field is just set to 20 characters VARCHAR
Fix
See #10868
Raise the characters in quote_order_address to 255 VARCHAR as in sales_order_address
Further comment
I found numerous field lengths to be different across many tables. Thus strings get cut off.
In my case the "telephone" was cut off as someone set it to be just 20 characters in the quote_address table despite it being 255 characters wide in the sales_order_address table.
There are many other fields differing.
Someone seriously needs to check this! Unfortunately I do not have enough knowledge about all the fields.
In my case our customers want to enter not one phone number but sometimes their landline and mobile phone number into the telephone field. The field is not validated against any format.
It seems this is across any version.
Metadata
Metadata
Assignees
Labels
The issue has been fixed in 2.2 release lineThe 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.1 releaseThe issue has been reproduced on latest 2.2 releaseThe issue has been reproduced on latest 2.3 release