Skip to content

CMS Static Block Widget saves the block identifier instead of block ID #38801

Open
@jansentjeu

Description

@jansentjeu

Preconditions and environment

  • Magento version 2.4.7
  • Make sure you have multiple stores configured

Steps to reproduce

  1. Go in admin to Content -> Blocks
  2. Create new block for a store
  3. Create another block for another store with the same identifier
  4. Go in admin to Content -> Widgets
  5. Add new widget with type CMS Static Block
  6. Click on the tab Widget Options in the sidebar
  7. Select the block you created in step 3 (the block with the highest ID)
  8. Save the widget
  9. 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”.

Metadata

Metadata

Labels

Area: Admin UIComponent: DBIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P2A defect with this priority could have functionality issues which are not to expectations.Progress: PR in progressReported on 2.4.7Indicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branch

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions