Description
Preconditions and environment
- Magento version 2.4.8
- B2B module is installed
- Two Shared Catalogs are created: Shared Catalog One, Shared Catalog Two
- Two Companies are created: Company One, Company Two. Company One is assigned to Shared Catalog One, Company Two - to Shared Catalog Two (in other words, Shared Catalog One is selected as Customer Group for Company One etc).
- Customer John Doe john.doe@example.com is created and assigned to Company One.
- Customer John Doe is NOT an admin of Company One (just a company user).
Steps to reproduce
- All actions below are done in admin panel.
- Edit Company Two (Customers -> Companies -> find and edit Company Two).
- In Company Admin tab, Email field, enter john.doe@example.com
- Save Company Two.
Expected result
In customer_entity table, john.doe@example.com customer has group_id which equals to Shared Catalog Two.
As a result, tier prices, category permissions etc for John Doe are based on Shared Catalog Two customer group
Actual result
In customer_entity table, john.doe@example.com customer still has group_id which equals to Shared Catalog One. It didn't change after John Doe became an admin of Company Two.
As a result, tier prices, category permissions etc for John Doe are based on Shared Catalog One customer group. There is no clue about this situation for the admin use as in the admin panel Shared Catalog Two is displayed as a John Doe's customer group, which is not true.
Additional information
It happens due to the old company being default in company_advanced_customer_entity. However, it makes sense to have the Company Two as a default one since it is the company customer is an admin of.
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”.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status