Open
Description
Preconditions (*)
- Reproduced in 19.4.14 but exists for a long time in OpenMage (also present in Magento codebase)
- Fresh installation (demo shop) with the following characteristics:
- An existing customer (one is able to log in to) assigned to the preinstalled website (the one entry in
System > Manage Stores
= "Main Website") must be present. - System config
General > Countries Options > Allow Countries (general/country/allow)
must contain a country in Website (or Store View) scope that is not allowed in default config scope i.e. it's selectable in shop frontend ("Main Website Store") but not in default store (admin store id 0) context.
For the reproduction I've chosen Bulgaria as the one that is only allowed in shop frontend and Germany, Austria and Switzerland as the commonly allowed countries (Note: the countries will be shown translated in admin context (German)).
- An existing customer (one is able to log in to) assigned to the preinstalled website (the one entry in
Steps to reproduce (*)
- In the shop frontend log in to existing customer.
- In
Address Book
add an address (the default address) for which the country must be set to the one that is allowed in the store but not in default config scope. Save the address.
- In the admin area view/edit the existing customer and select the
Addresses
tab. - The country will be empty because the select options of country are loaded for the default store (admin area, store id 0) not the appropriate website ("Main Website") of the edited customer.
Expected result (*)
- The country list is filled with the allowed countries of the selected website of the edited customer.
- The previously selected country of the saved address (default address) is preselected from the list.
- The customer can be freely edited and saved without selecting a country first (required field).
Actual result (*)
- The country list is filled with the countries of the default store (admin area).
- No country is preselected for the saved address (default address).
- The customer can't be freely edited and saved without selecting a country first (required field). This is even true if one edits fields in other tabs and don't load the
Addresses
tab.