Open
Description
Preconditions and environment
Tested on Magento version 2.4.7-p4
Steps to reproduce
- Set the default "Backorders" value to "Allow Qty Below 0".
- Run product import with test file where "allow_backorders" = 0 (No Backorders)
Expected result
Product Backorders is set to "No Backorders"
Actual result
Product Backorders still uses the default configuration value.
Additional information
The issue seems to be here https://github.com/magento/magento2/blob/2.4-develop/app/code/Magento/CatalogImportExport/Model/Import/Product.php#L3055
When "backorders" is set to "0", the value is determined to be empty, and the use_config_backorders value is not set.
Release note
No response
Triage and priority
- Severity: S0 - Affects critical data or functionality and leaves users without workaround.
- Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
- Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
- Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
- Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.