Do not create new revisions if the revision ID has changed

Created on 11 December 2024, 11 days ago

Problem/Motivation

If you programatically edit some paragraphs and then update the host entity to point to the new revisions you've created when you save the host entity you'll get new revisions of the paragrpahs.

Steps to reproduce

Proposed resolution

Check in \Drupal\entity_reference_revisions\Plugin\Field\FieldType\EntityReferenceRevisionsItem::preSave() is the revision ID is changed and if it has do not set $needs_save to TRUE.

Remaining tasks

User interface changes

N/a

API changes

N/a

Data model changes

Less unnecessary revisions.

πŸ“Œ Task
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom alexpott πŸ‡ͺπŸ‡ΊπŸŒ

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