New revisions should be affected changes of the reference field

Created on 1 February 2023, over 1 year ago
Updated 3 February 2023, over 1 year ago

Problem/Motivation

EntityReferenceRevisionsFieldItemList::hasAffectingChanges returns true if the target ID is different, but not if just the target revision ID is different. This is an issue if you update an entity to refer to a newer revision of an entity.

Steps to reproduce

  • Have an entity referencing another one with an entity reference revisions field
  • Create a new revision of the target entity.
  • The parent entity still reference the first revision of the target.
  • Set the reference field to the second revision of the target.
  • Check whether the field has affecting changes.

Proposed resolution

Check for changes to the item's target revision ID in addition to the target ID.

Remaining tasks

User interface changes

None.

API changes

None.

Data model changes

None.

πŸ› Bug report
Status

Needs work

Version

1.0

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada tbradbury

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

Comments & Activities

Production build 0.69.0 2024