Open
Description
Preconditions and environment
- Magento version 2.4.7
- Make sure you have multiple stores configured
Steps to reproduce
- Go in admin to Content -> Blocks
- Create new block for a store
- Create another block for another store with the same identifier
- Go in admin to Content -> Widgets
- Add new widget with type
CMS Static Block
- Click on the tab
Widget Options
in the sidebar - Select the block you created in step 3 (the block with the highest ID)
- Save the widget
- Check the saved block in the widget
Expected result
The block from step 3 is saved in the widget (the block with the highest ID)
Actual result
The block identifier is saved in the database instead of the block ID. This will automatically load the block with the lowest id. In this case, that is the block from step 2
Additional information
This issue was introduced by the change in this commit. This should be reverted. The way the code was before is correct.
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”.