ACSD-45049: Customer Is required attribute setting doesn't work properly as per the website scope…
Customer Is required attribute setting doesn't work properly as per the website scope in Admin. Quality patch ACSD-45049 for magento/module-customer applies to Magento Open Source and Adobe Commerce 2.4.4 to 2.4.5-p11.
- Categories
- Customer
- Components
- magento/module-customer
- Origin
- adobe-commerce-support
- Since QPT
- 1.1.50
Issue
Customer Is required attribute setting doesn't work properly as per the website scope in Admin.
Steps to reproduce
1. Create two websites. 1. Open Admin > Stores > Customer attribute. 1. Create a new attribute, set Is value required = No. 1. Switch to the default website, and change Is value required = Yes. The other website has the default value. 1. Create a new customer from Admin for the non-default website.
Adobe's page lists 2.4.4 - 2.4.4-p7 and 2.4.5 - 2.4.5-p9 as compatible; the versions below are resolved from the current QPT constraints and are the ones the tool will offer.
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-45049. On Cloud, add ACSD-45049 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-45049/ 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-base >=2.4.4 <2.4.4-p8
- Patch file
- patches/os/ACSD-45049_2.4.3-p1.patch
- vendor/magento/module-customer/Controller/Adminhtml/Index/Save.php
- vendor/magento/module-customer/Controller/Adminhtml/Index/Validate.php
- vendor/magento/module-customer/Model/AttributeMetadataResolver.php
- vendor/magento/module-customer/Model/AttributeWebsiteRequired.php (added)
- vendor/magento/module-customer/Model/Customer/DataProviderWithDefaultAddresses.php
- vendor/magento/module-customer/Model/FileUploaderDataResolver.php
- vendor/magento/module-customer/Model/ResourceModel/CustomerRepository.php
- vendor/magento/module-customer/view/adminhtml/web/js/form/element/website.js
magento/magento2-base >=2.4.5 <2.4.5-p7
- Patch file
- patches/os/ACSD-48816_2.4.5-p1.patch
- vendor/magento/module-customer/Controller/Adminhtml/Index/Save.php
- vendor/magento/module-customer/Controller/Adminhtml/Index/Validate.php
- vendor/magento/module-customer/Model/AttributeMetadataResolver.php
- vendor/magento/module-customer/Model/AttributeWebsiteRequired.php (added)
- vendor/magento/module-customer/Model/Customer/DataProviderWithDefaultAddresses.php
- vendor/magento/module-customer/Model/FileUploaderDataResolver.php
- vendor/magento/module-customer/Model/ResourceModel/CustomerRepository.php
- vendor/magento/module-customer/view/adminhtml/web/js/form/element/website.js
magento/magento2-base >=2.4.5-p7 <2.4.5-p11
- Patch file
- patches/os/ACSD-59165_2.4.5-p7.patch
- vendor/magento/module-customer/Controller/Adminhtml/Index/Save.php
- vendor/magento/module-customer/Controller/Adminhtml/Index/Validate.php
- vendor/magento/module-customer/Model/AttributeMetadataResolver.php
- vendor/magento/module-customer/Model/AttributeWebsiteRequired.php (added)
- vendor/magento/module-customer/Model/Customer/DataProviderWithDefaultAddresses.php
- vendor/magento/module-customer/Model/FileUploaderDataResolver.php
- vendor/magento/module-customer/Model/ResourceModel/CustomerRepository.php
- vendor/magento/module-customer/view/adminhtml/web/js/form/element/website.js
magento/magento2-base 2.4.5-p11
- Magento Open Source
- 2.4.5-p11
- Adobe Commerce
- 2.4.5-p11
- Patch file
- patches/os/ACSD-64639_2.4.5-p11.patch
- vendor/magento/module-customer/Controller/Adminhtml/Index/Save.php
- vendor/magento/module-customer/Controller/Adminhtml/Index/Validate.php
- vendor/magento/module-customer/Model/AttributeMetadataResolver.php
- vendor/magento/module-customer/Model/AttributeWebsiteRequired.php (added)
- vendor/magento/module-customer/Model/Customer/DataProviderWithDefaultAddresses.php
- vendor/magento/module-customer/Model/FileUploaderDataResolver.php
- vendor/magento/module-customer/Model/ResourceModel/CustomerRepository.php
- vendor/magento/module-customer/view/adminhtml/web/js/form/element/website.js
