Saving of paragraphs doesn't work if Gin is used

Created on 31 October 2024, about 2 months ago

Problem/Motivation

After introducing the Gin support when paragraph form was marked as content form, the processing of form actions was changed due to gin form alter. To make the buttons still appear in the form not in a sticky way the form actions were copied into another form element, but the submit handler for paragraph behavior handling was only in the main form actions, not in a copy.

Steps to reproduce

  1. Create paragraph type and add at least one paragraph behavior to it.
  2. Try to edit the paragraph of this type in frontend editing
  3. Try to change the behavior
  4. The preview shows the correct change on the page.
  5. Click "Save"
  6. The content is updated without changes to behavior

Proposed resolution

Add the submit handler for paragraph behaviors to a copy of form actions, if this copy exists.

🐛 Bug report
Status

Active

Version

1.8

Component

Code

Created by

🇩🇪Germany a.dmitriiev

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024