Closed
Description
On Magento 2.1.7 the user change the country from EUA with region Alaska to Uruguay for instance the region dropdown is hidden and the region input text is showed with Alaska as value..
So, if you change to XXX and save Magento is still posting the region_id Alaska and on the backend we are now checking if the region_id exists and if it does we override the value of region.
This behavior was introduced on this commit 7750415#diff-9fadca60a49535a2817d9fc5c4535d3a
My solution was to disable the region_id dropdown element so it will not be posted when it is hide.
Preconditions
- Magento 2.1.7
- PHP 7.0.4
Steps to reproduce
- Log into your Account on the frontend
- Edit your billing address and save using EUA for country and pick a state, save it.
- Edit your billing address again, change from EUA to Uruguay, change the region input for Test
- Save it and you will see EUA state still being showed.
Expected result
- After save you should be able to see the new state being displayed
Actual result
- After save it is showing the old state value.
Proposal Solution
Not post region_id if we don't need it.
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