MDVA-31343 Magento patch fixes the issue where the assigned layout body CSS class for a category gets removed during scheduled update. This patch is available when the Magento Quality Patch (MQP) tool 1.0.7 is installed. The issue is scheduled to be fixed in Magento 2.4.2.
Affected products and versions
The patch is created for Magento version:
Magento Commerce Cloud 2.3.5-p2.
The patch is also compatible with:
Magento Commerce and Magento Commerce Cloud from 2.3.4 to 2.3.5-p2.
Note: the patch can be applicable to other versions. To check if the patch is compatible with your Magento version, run ./vendor/bin/magento-patches status
.
Issue
Layout body class gets removed from the category after scheduled update.
Steps to reproduce:
1. In Magento Admin, create a category.
2. Set Layout = Category -- Full width in the Design section.
3. Save the category.
4. Go to category frontend page. In the page source notice the page-layout-category-full-width
CSS class.
5. Under CATALOG > Category, click Schedule New Update in the Scheduled Changes section for the new category.
6. Wait for the scheduled update to start, run cron and flush cache.
7. Go to the category page on the frontend and inspect the page source.
Actual result:
In the page body, you see the page-layout-2columns-left
CSS class, which is default for the category page.
Expected result:
In the page body, you see the page-layout-category-full-width
CSS class.
Apply the patch
For instructions on how to apply an MQP patch, use the following links depending on your Magento product:
- Magento Commerce: DevDocs Apply patches using Magento Quality Patches Tool.
- Magento Commerce Cloud: DevDocs Upgrades and Patches > Apply patches.
Related reading
To learn more about Magento Quality Patches, refer to:
- Magento Quality Patches released: a new tool to self-serve quality patches.
- Check if patch is available for your Magento issue using Magento Quality Patches.
For info about other patches available in MQP tool, refer to the Patches available in MQP tool section.