Support entity revision references

Created on 31 October 2014, over 10 years ago
Updated 13 April 2023, almost 2 years ago

Problem/Motivation

The entity reference module is working on a feature to reference specific revisions see #1837650: Allow referencing a specific revision ID . Inline Entity Form does not appear to support the loading or saving of specific revisions for entity references. Some of the issues are that Inline Entity Form settings only allows a single column for the entity id; entities are loaded with entity_load() which appears to only load the current revision, and; after saving an entity, only the entity id is passed to the parent entity.

In my use case I have also installed the Revisioning module, consequently there are revisions that are newer than the currently published revision. So, when loading and saving, the specific revision id needs to be set, rather than just the current (published) or latest (draft).

Proposed resolution

I'm not sure what the best resolution is for the different use cases that Inline Entity Form aims to support. For my current use case, which is tracking revisions between two nodes, I have attempted to address this with some minimal changes to loading and saving events, I will upload a patch shortly. Please note that my use case appears to differ slightly form the current solution proposed for supporting entity reference revisions in #1837650: Allow referencing a specific revision ID in that I would like to reference specific revision ids rather than the current, or the original (as in the case of locked revision references), please see my comment #1837650-69: Allow referencing a specific revision ID .

I would be grateful for any feedback on whether this is a feature Inline Entity Form should support, and if so any recommendations on implementing a more robust solution.

Many thanks for your time.

Feature request
Status

Fixed

Version

1.0

Component

Code

Created by

🇺🇸United States lwalley

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