EntityStorageException when saving existing paragraph revision via Inline Entity Form

Created on 25 June 2025, 18 days ago

Steps to reproduce

1. Enable revisions on a Paragraphs type.
2. Add a Paragraph field to a content type, using the Inline Entity Form (IEF) - Embedded widget.
3. Configure the widget to "allow editing of existing entities".
4. Create a node, add a paragraph, save.
5. Edit the node, modify the paragraph, and save.

Proposed resolution

Force any saved revision to be the default when saving a revisionable entity via IEF.
Suggested fix in `WidgetSubmit::doSubmit()`:

```php
if ($entity instanceof \Drupal\Core\Entity\RevisionableInterface) {
$entity->setNewRevision(TRUE);
$entity->isDefaultRevision(TRUE);
}

🐛 Bug report
Status

Active

Version

3.0

Component

Code

Created by

🇪🇸Spain Joseminosa

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

Comments & Activities

Production build 0.71.5 2024