Region is being overridden when changing from a required-state country to one that is not required #10317
Labels
bug report
Fixed in 2.2.x
The issue has been fixed in 2.2 release line
Fixed in 2.3.x
The issue has been fixed in 2.3 release line
Issue: Clear Description
Gate 2 Passed. Manual verification of the issue description passed
Issue: Confirmed
Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed
Issue: Format is valid
Gate 1 Passed. Automatic verification of issue format passed
Issue: Ready for Work
Gate 4. Acknowledged. Issue is added to backlog and ready for development
Reproduced on 2.1.x
The issue has been reproduced on latest 2.1 release
Reproduced on 2.2.x
The issue has been reproduced on latest 2.2 release
Reproduced on 2.3.x
The issue has been reproduced on latest 2.3 release
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
Steps to reproduce
Expected result
Actual result
Proposal Solution
Not post region_id if we don't need it.
region-updater.patch.txt
The text was updated successfully, but these errors were encountered: