"Unsaved changes" message incorrectly appears on layout builder

Created on 26 October 2024, 20 days ago

Problem/Motivation

I was getting this error

Fatal error: Declaration of Drupal\layout_builder\LayoutTempstoreRepository::set(Drupal\layout_builder\SectionStorageInterface $section_storage) must be compatible with Drupal\layout_builder\LayoutTempstoreRepositoryInterface::set(Drupal\layout_builder\SectionStorageInterface $section_storage, $has_unsaved_changes = true) in C:\laragon\www\commerce\web\core\modules\layout_builder\src\LayoutTempstoreRepository.php on line 80

After applying patch from https://www.drupal.org/project/drupal/issues/3207875#comment-15831326 🐛 "Unsaved changes" message incorrectly appears on layout builder Needs work it was solved. Thought it might help someone.

📌 Task
Status

Active

Version

3.0

Component

Code

Created by

🇵🇰Pakistan ugintl

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024