MDVA-42657: Admin user is unable to select categories in the customer segment conditions
Admin user is unable to select categories in the customer segment conditions. Quality patch MDVA-42657 for magento/module-customer-segment applies to Magento Open Source and Adobe Commerce 2.4.1 to 2.4.3-p3.
- Categories
- Admin
- Components
- magento/module-customer-segment
- Origin
- adobe-commerce-support
- Since QPT
- 1.1.9
Issue
Admin user is unable to select categories in the customer segment conditions.
Steps to reproduce
1. Go to Customers > Segments. 1. Create a new segment. 1. Go to the newly created segment and click Conditions in the left side navigation. 1. Click the green plus sign. 1. Select Product History under Products. 1. Change "viewed" to "ordered". 1. Change "ALL" to "ANY". 1. Click the nested green plus sign and select Category. 1. Click the ... sign and then click the chooser icon (to the left of the checkmark). 1. Open the browser dev console. 1. Check the checkboxes for any/multiple categories and note the javascript error thrown in the console. 1. Click the Save button. 1. Navigate back to the condition and check if the selected categories are saved.
Adobe's page lists 2.4.1 - 2.4.3-p1 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.5.
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 MDVA-42657. On Cloud, add MDVA-42657 under stage.build.QUALITY_PATCHES in .magento.env.yaml.
For cweagans/composer-patches, choose a compatible version below and download the bundle. Copy its MDVA-42657/ 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-ee-base >=2.4.1 <2.4.4
- Magento Open Source
- —
- Patch file
- patches/commerce/MDVA-42657_2.4.2.patch
- vendor/magento/module-customer-segment/view/adminhtml/web/js/conditions.js
