Frontend editing may not apply value changes of nested paragraphs

Created on 27 January 2023, almost 2 years ago
Updated 28 April 2023, over 1 year ago

Problem/Motivation

When editing a paragraph item nested in an other paragraph the change is not applied after save.

Steps to reproduce

  1. Install:
    • Drupal 10
    • Paragraphs
    • Frontend editing
    • Entity Reference Display
  2. Enable Media and set some view modes for the Image media type.
  3. Create an Image paragraph type that references the Image media type. Set it to use Entity Reference Display – so the view mode used to display the Image entity is selectable.
  4. Create another paragraph type – eg. "Grid" – that references the Image paragraph.
  5. Add a paragraph reference field to a content type and enable referencing both Image and Grid paragraph types.
  6. Create new content and add an Image and a Grid paragraph.
  7. Use Frontend Editing to edit the standalone Image paragraph and change the display mode. When saved you will see the image displayed differently.
  8. Use Frontend Editing to edit the Image paragraph inside Grid and change the display mode. When saved you will see that the image display did not change.
  9. Edit the node and check the Image paragraph inside the Grid paragraph. You will see that the Display mode you selected before is the selected one.
  10. Save the node without changing anything. The image inside Grid will be displayed differently.

Proposed resolution

Check why the change is not applied and fix it.

Hint: could this be a problem with https://www.drupal.org/project/paragraphs_edit β†’ that is required by Frontend Editing?

Remaining tasks

Fix the bug.

User interface changes

None.

API changes

?

Data model changes

?

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡­πŸ‡ΊHungary thamas Hungary

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

Comments & Activities

Production build 0.71.5 2024