ACSD-68092: Bundle product options are lost after multiple saves due to improper synchronization…
Bundle product options are lost after multiple saves due to improper synchronization between scheduled updates and base product data. Quality patch ACSD-68092 for magento/module-bundle applies to Magento Open Source and Adobe Commerce 2.4.8 to 2.4.8-p5.
- Categories
- Admin, Catalog/Product
- Components
- magento/module-bundle, setup/src, magento/module-bundle-staging
- Origin
- adobe-commerce-support
- Since QPT
- 1.1.72
Issue
Bundle product options are lost after multiple saves due to improper synchronization between scheduled updates and base product data.
Steps to reproduce
1. Create a simple product. 1. Create a bundle product with 1 drop-down option and associate the simple product. 1. Create a content staging update with a start date and an end date in the future (For example: to change the name). 1. Exit the popup after creating the content staging update to return to editing the product data before the update starts. 1. Delete the existing option and Save. 1. Recreate the option (drop-down with the simple product associated) and Save. 1. Save again. 1. Observe that the simple product isn't associated anymore. 1. Save again.
Adobe's page lists 2.4.8 - 2.4.8-p2 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-68092. On Cloud, add ACSD-68092 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-68092/ 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.8 <2.4.9
- Requires
- ACP2E-3767
- Patch file
- patches/os/ACSD-68092_2.4.8-p2.patch
- vendor/magento/module-bundle/Model/LinkManagement.php
- vendor/magento/module-bundle/Model/Option/SaveAction.php
- setup/src/Magento/Setup/Model/FixtureGenerator/BundleProductGenerator.php
magento/magento2-ee-base >=2.4.8 <2.4.9
- Magento Open Source
- —
- Requires
- ACP2E-3767
- vendor/magento/module-bundle-staging/Model/Product/BundleProductCopier.php
- vendor/magento/module-bundle-staging/Model/Product/CopyHandler.php (added)
- vendor/magento/module-bundle-staging/Model/Product/DeleteHandler.php
- vendor/magento/module-bundle-staging/Model/Product/UpdateHandler.php (added)
- vendor/magento/module-bundle-staging/Model/ResourceModel/ObjectRelationProcessor.php (added)
- vendor/magento/module-bundle-staging/Model/ResourceModel/Option.php (added)
- vendor/magento/module-bundle-staging/Model/ResourceModel/Selection.php (added)
- vendor/magento/module-bundle-staging/Plugin/Bundle/Model/ResourceModel/BundlePlugin.php
- vendor/magento/module-bundle-staging/Plugin/Bundle/Model/ResourceModel/OptionPlugin.php
- vendor/magento/module-bundle-staging/etc/di.xml
