Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The country drop-down list display incorrect after upgrade to 2.1.4 in Admin #8732

Closed
tanloi3004 opened this issue Mar 1, 2017 · 4 comments
Labels
Fixed in 2.2.x The issue has been fixed in 2.2 release line 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

Comments

@tanloi3004
Copy link

tanloi3004 commented Mar 1, 2017

Preconditions

  1. Magento 2.1.4
  2. Setup multiple websites and set Allow Countries(Store => Configuration => General => Country Options) per website are different.

Steps to reproduce

  1. Go to Admin, All Customers
  2. Create/Edit a customer
  3. Add/Edit an address, the country drop-down box always shows allowed countries of default store.

/** * Retrieve all options * * @return array */ public function getAllOptions() { if (!$this->_options) { $this->_options = $this->_createCountriesCollection()->loadByStore( $this->getStoreResolver()->getCurrentStoreId() )->toOptionArray(); } return $this->_options; }

The Function getAllOptions() of class Magento\Customer\Model\ResourceModel\Address\Attribute\Source use default store at here. (Admin Scope)

Expected result

The country drop-down box shows the countries matching config value per website(assigned to customer).

Actual result

  1. [Screenshot, logs]
    The country drop-down box always list countries of default store.
@mimarcel
Copy link
Contributor

mimarcel commented Apr 27, 2017

@tanloi3004 This may be the same issue as described and fixed in #9429 .

@magento-team magento-team added Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development develop labels Jul 31, 2017
@magento-team
Copy link
Contributor

Internal ticket to track issue progress: MAGETWO-70052

@magento-engcom-team magento-engcom-team added Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development develop Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed and removed G1 Passed labels Sep 5, 2017
@magento-engcom-team
Copy link
Contributor

@tanloi3004 thank you for your report.
The fix for this issue is already available in release 2.2.0

@magento-engcom-team magento-engcom-team added the Fixed in 2.2.x The issue has been fixed in 2.2 release line label Sep 20, 2017
@VonKavalier
Copy link

I see that the TODO is done in the 2.3 branch. Could you provide a link where it's fixed in 2.2 ? I wasn't able to see the fix in my 2.2 local installation, and didn't find anything proving it has been solved in 2.2 except those labels.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Fixed in 2.2.x The issue has been fixed in 2.2 release line 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
Projects
None yet
Development

No branches or pull requests

5 participants