QUALITY PATCH

ACSD-52095: The manage_stock value is incorrectly set to 0 in the CSV file after product export

The manage_stock value is incorrectly set to 0 in the CSV file after product export. Quality patch ACSD-52095 for magento/module-catalog-import-export applies to Magento Open Source and Adobe Commerce 2.3.7 to 2.4.5-p17.

Categories
Inventory, Import/Export
Components
magento/module-catalog-import-export
Origin
adobe-commerce-support
Since QPT
1.1.35

Issue

The manage_stock value is incorrectly set to 0 in the CSV file after product export.

Steps to reproduce

1. Go to Admin > Store > Configuration > Catalog > Inventory > Product Stock Options and set Manage Stock = No. 1. Create a new product and save it. 1. Go to System > Export. 1. Select Entity Type = Products and export the products. 1. Check the generated CSV file: manage_stock = 0, use_config_manage_stock = 1. 1. Again go to Admin > Store > Configuration > Catalog > Inventory > Product Stock Options, and set Manage Stock = Yes. 1. Go to System > Export. Select Entity Type = Products and export the products. 1. Check the generated CSV file: manage_stock = 0, use_config_manage_stock = 1. 1. Open the product in the Admin, go to Advanced Inventory and check the Manage Stock value.

Adobe's page lists 2.3.7 - 2.4.5-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.7.

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-52095. On Cloud, add ACSD-52095 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-52095/ 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

Packages across compatible versions (1): magento/module-catalog-import-export
Packages across compatible versions (1): magento/module-catalog-import-export

Sources

Łukasz Bajsarowicz
Built by

Łukasz Bajsarowicz, e-commerce architect

Magento and Adobe Commerce architecture, upgrades, performance and audits for merchants and agencies since 2015; magento.watch is the tooling I use on those projects.

Open source, maintained on weekends.