ACSD-59366: Error when you delete a team that contains deactivated users who are not visible…
Error when you delete a team that contains deactivated users who are not visible in the team list. Quality patch ACSD-59366 for magento/module-company applies to Magento Open Source and Adobe Commerce 2.4.6 to 2.4.7-p2.
- Categories
- B2B
- Components
- magento/module-company, magento/module-company-graph-ql
- Origin
- adobe-commerce-support
- Since QPT
- 1.1.52
Issue
An error occurs when you delete a team that contains deactivated users who are not visible in the team list.
Steps to reproduce
1. Create and log in with a company user. 1. Under company structure, create a new team. 1. Under the new team, create a new user. 1. Edit the new user and deactivate. 1. Select the team and delete.
Adobe's page lists 2.4.6 - 2.4.7-p3 as compatible; the versions below are resolved from the current QPT constraints and are the ones the tool will offer.
Adobe scheduled the permanent fix for 2.4.8.
Install
Install the Quality Patches Tool with composer require magento/quality-patches, apply the prerequisites listed for all files applicable to your distribution and version first, then run vendor/bin/magento-patches apply ACSD-59366. On Cloud, add ACSD-59366 under stage.build.QUALITY_PATCHES in .magento.env.yaml.
For cweagans/composer-patches, choose a compatible version below and download the bundle. Copy its ACSD-59366/ folder into patches/composer/, merge composer.patches.json into composer.json, then run composer install. Bundle prerequisites the same way and list them first. Paths are relative to each package root, using the default -p1 level. Prefer local files when configuring composer-patches; a remote URL can change.
Patch files and compatible versions
magento/magento2-b2b-base >=1.3.5 <1.4.3
- Magento Open Source
- —
- Adobe Commerce
- 2.4.7-p2, 2.4.7-p1, 2.4.7, 2.4.6-p7, 2.4.6-p6, 2.4.6-p5, 2.4.6-p4, 2.4.6-p3, 2.4.6-p2, 2.4.6-p1, 2.4.6
- Patch file
- patches/commerce/ACSD-59366_1.3.5.patch
- vendor/magento/module-company/Controller/Team/Check.php (added)
- vendor/magento/module-company/Model/Team/Delete.php
- vendor/magento/module-company/i18n/en_US.csv
- vendor/magento/module-company/view/frontend/templates/company/management.phtml
- vendor/magento/module-company/view/frontend/web/js/hierarchy-tree.js
- vendor/magento/module-company-graph-ql/Model/Resolver/DeleteCompanyTeam.php
