Issue creating revision for paragraphs

Created on 22 August 2022, about 2 years ago
Updated 21 April 2023, over 1 year ago

Once the module is activated, I can easily create revisions on my taxonomy terms and see my different versions from my term's revisions overview page.

However, if my term has paragraphs (entity reference revisions field) and I seek to register a new revision of my term, the version of my paragraph is shared between all versions (where my paragraph exists). It does not create a new revision of my paragraph.

After looking for the origin of the problem, it turns out that the definition of the taxonomy term as revisionable is too late, it is not taken into account during the pre-registration of the field (see: \Drupal\entity_reference_revisions\Plugin \Field\FieldType\EntityReferenceRevisionsItem::preSave():275).
The \Drupal\Core\EntityRevisionableInterface::isNewRevision() method returns FALSE.

To overcome this problem, it is necessary to display the revisions interface in the form of the entity.
Among other things, this will allow the user to choose whether he wishes to create a new revision.

The patch that I propose, activates revisions on taxonomy terms and solves my problem with paragraphs
On submission, it now creates a revision of my paragraph.

πŸ› Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

πŸ‡«πŸ‡·France S3b0uN3t Nantes

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024