MDVA-31343 patch: schedule update removes body class for category
MDVA-31343 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 Quality Patches Tool (QPT) 1.0.7 is installed. The issue is scheduled to be fixed in Adobe Commerce 2.4.2.
Affected products and versions
The patch is created for Adobe Commerce version:
Adobe Commerce on cloud infrastructure 2.3.5-p2
Compatible with Adobe Commerce versions:
Adobe Commerce on cloud infrastructure and Adobe Commerce on-premises 2.3.4 - 2.3.5-p2
magento/quality-patches
package to the latest version and check the compatibility on the Quality Patches Tool: Search for patches page. Use the patch ID as a search keyword to locate the patch.Issue
Layout body class gets removed from the category after scheduled update.
Steps to reproduce:
-
In the Commerce Admin, create a category.
-
Set Layout = Category – Full width in the Design section.
-
Save the category.
-
Go to category frontend page. In the page source notice the
code language-css page-layout-category-full-width
CSS class.
-
Under CATALOG > Category, click Schedule New Update in the Scheduled Changes section for the new category.
-
Wait for the scheduled update to start, run cron and flush cache.
-
Go to the category page on the frontend and inspect the page source.
Expected results:
In the page body, you see the
page-layout-category-full-width
CSS class.
Actual results:
In the page body, you see the
page-layout-2columns-left
CSS class, which is default for the category page.
Apply the patch
To apply individual patches, use the following links depending on your deployment method:
- Adobe Commerce or Magento Open Source on-premises: Software Update Guide > Apply Patches in our developer documentation.
- Adobe Commerce on cloud infrastructure: Upgrades and Patches > Apply Patches in our developer documentation.
Related reading
To learn more about Quality Patches Tool, refer to:
- Quality Patches Tool released: a new tool to self-serve quality patches in our support knowledge base.
- Check if patch is available for your Adobe Commerce issue using Quality Patches Tool in our support knowledge base.
For info about other patches available in QPT, refer to the Patches available in QPT in our developer documentation.