Layout builder is showing two status messages

Created on 1 January 2019, almost 6 years ago
Updated 16 April 2024, 8 months ago

Layout builder is showing two status messages.
Steps to produce the bug:

  1. Login as administrator.
  2. Enable layout builder and layout discovery module.
  3. Go to admin/structure/types/manage/article/display and check "Use layout builder" and "Allow each content item to have its layout customized."
  4. Create an article
  5. Click on layout tab coming below title of the article.
  6. Add section then you will notice one warning message will come "You have unsaved changes." in the special layout builder message section
  7. Then reload the page
  8. There will be a "You have unsaved changes." message in the regular message section
  9. Add section again
  10. Now you two warning messages. One in the regular message area and one in the layout builder section.

Expected behaviour
1. Only one warning message should show when we are refreshing the page without saving and adding any thing in layout builder instead of showing two warning messages.

Reason for which it is happening:
When ever some changes is happening layout builder giving status out put to status-messages.html.twig and when page reloads then same status messages also coming from block--system-messages-block.html.twig, as a result two status messages are showing.

Can anyone having any suggestion on this issue.

Thanks,
Debasish

๐Ÿ› Bug report
Status

Needs work

Version

11.0 ๐Ÿ”ฅ

Component
Layout builderย  โ†’

Last updated 2 days ago

Created by

๐Ÿ‡ฎ๐Ÿ‡ณIndia Debasish147

Live updates comments and jobs are added and updated live.
  • Blocks-Layouts

    Blocks and Layouts Initiative. See the #2811175 Add layouts to Drupal issue.

  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024