ACSD-64627: Custom customer attributes don't save when adding or editing users on the Company…
Custom customer attributes don't save when adding or editing users on the Company Structure page. Quality patch ACSD-64627 for magento/module-company applies to Magento Open Source and Adobe Commerce 2.4.6-p8 to 2.4.8-p4.
- Categories
- B2B
- Components
- magento/module-company
- Origin
- adobe-commerce-support
- Since QPT
- 1.1.63
Issue
Custom customer attributes don't save when adding or editing users on the Company Structure page.
Steps to reproduce
1. Install an Adobe Commerce instance with B2B features enabled. 1. Create a new customer attribute named custom_upload with the Input Type set to File (attachment). 1. Create another customer attribute named image_attachment with the Input Type set to Image File. 1. Set Show on Storefront to Yes to make both the attributes visible on the storefront. Select all forms: * Customer Registration * Customer Account Edit * Admin Checkout 1. Create and activate a new company. 1. Sign in to the storefront as the company admin. 1. Navigate to Customer Account > Company Structure or Customer Account > Company Users. 1. Click Add New User. 1. Click Upload for the custom_upload attribute. 1. Click Select file for the image_attachment attribute.
Adobe's page lists 2.4.6-p8, 2.4.7-p3, 2.4.7-p4, 2.4.8 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.9.
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-64627. On Cloud, add ACSD-64627 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-64627/ 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.5.0 <1.5.1
- Magento Open Source
- —
- Patch file
- patches/commerce/ACSD-64627_1.5.0.patch
- vendor/magento/module-company/Controller/Customer/Get.php
- vendor/magento/module-company/Model/Action/Customer/Populator.php
- vendor/magento/module-company/Model/Action/SaveCustomer.php
- vendor/magento/module-company/Model/Customer/CompanyUserHydrator.php
- vendor/magento/module-company/Model/Customer/CustomAttributeHandler.php (added)
- vendor/magento/module-company/Model/Customer/UserDefinedAttributes.php (added)
- vendor/magento/module-company/Plugin/CustomerCustomAttributes/Index/ViewfilePlugin.php (added)
- vendor/magento/module-company/Plugin/View/LayoutPlugin.php (added)
- vendor/magento/module-company/ViewModel/FileAttribute.php (added)
- vendor/magento/module-company/etc/di.xml
- vendor/magento/module-company/etc/frontend/di.xml
- vendor/magento/module-company/view/frontend/layout/company_index_index.xml
- vendor/magento/module-company/view/frontend/layout/company_users_index.xml
- vendor/magento/module-company/view/frontend/templates/form/renderer/image.phtml (added)
- vendor/magento/module-company/view/frontend/web/js/component/file-uploader.js (added)
- vendor/magento/module-company/view/frontend/web/js/hierarchy-tree-popup.js
- vendor/magento/module-company/view/frontend/web/js/hierarchy-tree.js
- vendor/magento/module-company/view/frontend/web/js/user-edit.js
- vendor/magento/module-company/view/frontend/web/template/form/element/uploader/preview.html (added)
- vendor/magento/module-company/view/frontend/web/template/form/element/uploader/uploader.html (added)
magento/magento2-b2b-base >=1.5.1 <1.5.2
- Magento Open Source
- —
- Patch file
- patches/commerce/ACSD-65084_1.5.1.patch
- vendor/magento/module-company/Controller/Customer/Get.php
- vendor/magento/module-company/Model/Action/Customer/Populator.php
- vendor/magento/module-company/Model/Action/SaveCustomer.php
- vendor/magento/module-company/Model/Customer/CompanyUserHydrator.php
- vendor/magento/module-company/Model/Customer/CustomAttributeHandler.php (added)
- vendor/magento/module-company/Model/Customer/UserDefinedAttributes.php (added)
- vendor/magento/module-company/Plugin/CustomerCustomAttributes/Index/ViewfilePlugin.php (added)
- vendor/magento/module-company/Plugin/View/LayoutPlugin.php (added)
- vendor/magento/module-company/ViewModel/FileAttribute.php (added)
- vendor/magento/module-company/etc/di.xml
- vendor/magento/module-company/etc/frontend/di.xml
- vendor/magento/module-company/view/frontend/layout/company_index_index.xml
- vendor/magento/module-company/view/frontend/layout/company_users_index.xml
- vendor/magento/module-company/view/frontend/templates/form/renderer/image.phtml (added)
- vendor/magento/module-company/view/frontend/web/js/component/file-uploader.js (added)
- vendor/magento/module-company/view/frontend/web/js/hierarchy-tree-popup.js
- vendor/magento/module-company/view/frontend/web/js/hierarchy-tree.js
- vendor/magento/module-company/view/frontend/web/js/user-edit.js
- vendor/magento/module-company/view/frontend/web/template/form/element/uploader/preview.html (added)
- vendor/magento/module-company/view/frontend/web/template/form/element/uploader/uploader.html (added)
magento/magento2-b2b-base >=1.5.2 <1.5.3
- Magento Open Source
- —
- Adobe Commerce
- 2.4.8-p4, 2.4.8-p3, 2.4.8-p2, 2.4.8-p1, 2.4.8, 2.4.7-p10, 2.4.7-p9, 2.4.7-p8, 2.4.7-p7, 2.4.7-p6, 2.4.7-p5, 2.4.6-p15, 2.4.6-p14, 2.4.6-p13, 2.4.6-p12, 2.4.6-p11, 2.4.6-p10
- Patch file
- patches/commerce/ACSD-65553_1.5.2.patch
- vendor/magento/module-company/Model/Customer/CustomAttributeHandler.php
- vendor/magento/module-company/Plugin/CustomerCustomAttributes/Index/ViewfilePlugin.php (added)
- vendor/magento/module-company/Plugin/View/LayoutPlugin.php (added)
- vendor/magento/module-company/etc/frontend/di.xml
- vendor/magento/module-company/view/frontend/templates/form/renderer/image.phtml (added)
- vendor/magento/module-company/view/frontend/web/js/hierarchy-tree-popup.js
- vendor/magento/module-company/view/frontend/web/js/hierarchy-tree.js
