openfoodnetwork
openfoodnetwork copied to clipboard
Admin, Enterprise Details: Fix country selection on business address panel
What? Why?
Closes #9777
- Actually should also solves many bugs on dependEnt-select also
- correct some CSS alignment

This probably needs some automatic specs since we didn't spot anything...
What should we test?
- As an admin, go to
/admin/enterprises/[HUB_PERMALINK]/edit#!#business_details_panel
- Change country to a country that is not the first in the list
- See that state options did changed
- Select a state that is not the first on the list
- Save
- And then refresh the page, and see that country/state are well saved and are selected in the components.
Also Test everywhere the double selector country/state is present on admin section that when changing country, the options state also change
Also Business address could be different as address: (France/Haute-Garonne vs. France/Gers)


Release notes
Changelog Category: User facing changes
The title of the pull request will be included in the release notes.