Skip to content

Allowed Countries does not work correctly #38181

Open
@zhovnirigor

Description

@zhovnirigor

Preconditions and environment

  1. Magento version 2.4.6-p3
  2. Share Customer Accounts (customer/account_share/scope) = Global
  3. Allowed countries (general/country/allow) in the default website (for instance, British Website) are set to set X (for instance, United Kingdom only).
  4. Allowed countries (general/country/allow) in any other website (for instance, Irish Website) are set to set Y (for instance, Ireland only).
  5. Create a customer in the Store View that does not belong not to default website (for instance, create it in any store that belongs to Irish Website).
  6. Assign some address to the previously created customer with the country that is allowed not only not in the default website (for instance, with the country Ireland).

Steps to reproduce

First case:

  1. Do a PUT request to the /rest/V1/customers/[customer_id], where [customer_id] is the entity_id of the customer created on the 5th step of preconditions.

Another case:

  1. In the admin panel, edit the customer created on the 5th step of preconditions.
  2. Go to the tab Addresses
  3. Click Edit on the address created on the 6th step of preconditions.

Expected result

First case:

PUT request is executed without any errors

Another case:

Country field is present and contains all the available values (so United Kingdom and Ireland, for example).

Actual result

First case:

An error occurred 'Invalid value of "IE" provided for the countryId field.'

Another case:

Country field is not present at all.

Additional information

Fixed in #38182

Release note

No response

Triage and priority

  • Severity: S0 - Affects critical data or functionality and leaves users without workaround.
  • Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
  • Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
  • Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
  • Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: AccountComponent: CustomerIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P2A defect with this priority could have functionality issues which are not to expectations.Progress: PR in progressReported on 2.4.6-p3Indicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branch

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions