Open
Description
Preconditions and environment
Magento ver. 2.4.3-p2
Steps to reproduce
- Have a magento instance with at least two stores
- Create a cms block only visible in the store that is not the default store
- Create a cms page in on of the two stores (doesn't matter which one)
- Add the cms block you created, in the page through the page builder.
Expected result
Block preview should render
Actual result
Additional information
From my research, i found that the code goes through this file vendor/magento/module-cms/Block/Widget/Block.php(131) and gets sets the default store id on the block it's trying to fetch. It then tries to look for the block from the other store with the wrong store id, and does not find it here vendor/magento/module-cms/Model/ResourceModel/Block.php(121). The block is not loaded and the preview is blank.
Note that only the preview in the page builder is broken, the page renders correctly on the frontend.
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”.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Dev In Progress