This feature doesn't have a UI. It's already implemented in the 8.x branch.

Files: 
CommentFileSizeAuthor
#24 entityreference-reference_revisions-1837650-24.patch10.92 KBspatical
FAILED: [[SimpleTest]]: [MySQL] Unable to apply patch entityreference-reference_revisions-1837650-24.patch. Unable to apply patch. See the log in the details link for more information.
[ View ]
#22 entityreference-n1837650-22.patch14.1 KBJelle_S
PASSED: [[SimpleTest]]: [MySQL] 121 pass(es).
[ View ]
#21 entityreference-n1837650-21.patch13.68 KBJelle_S
PASSED: [[SimpleTest]]: [MySQL] 121 pass(es).
[ View ]
#20 entityreference-n1837650-20.patch18.56 KBJelle_S
PASSED: [[SimpleTest]]: [MySQL] 121 pass(es).
[ View ]
#19 entityreference-n1837650-19.patch17.11 KBJelle_S
PASSED: [[SimpleTest]]: [MySQL] 121 pass(es).
[ View ]
#18 entityreference-n1837650-18.patch12.19 KBJelle_S
PASSED: [[SimpleTest]]: [MySQL] 121 pass(es).
[ View ]
#16 entityreference-n1837650-16.patch9.16 KBJelle_S
PASSED: [[SimpleTest]]: [MySQL] 119 pass(es).
[ View ]
#15 entityreference-n1837650-15.patch9.06 KBJelle_S
PASSED: [[SimpleTest]]: [MySQL] 119 pass(es).
[ View ]
#14 entityreference-n1837650-14.patch7.31 KBDamienMcKenna
PASSED: [[SimpleTest]]: [MySQL] 119 pass(es).
[ View ]
#12 entityreference-n1837650-12.patch8.33 KBAlbert Volkman
PASSED: [[SimpleTest]]: [MySQL] 119 pass(es).
[ View ]
#12 interdiff.txt672 bytesAlbert Volkman
#9 entityreference-n1837650-9.patch8.98 KBAlbert Volkman
FAILED: [[SimpleTest]]: [MySQL] Unable to apply patch entityreference-n1837650-9.patch. Unable to apply patch. See the log in the details link for more information.
[ View ]
#9 interdiff.txt840 bytesAlbert Volkman
#8 entityreference-n1837650-8.patch8.31 KBDamienMcKenna
PASSED: [[SimpleTest]]: [MySQL] 119 pass(es).
[ View ]
#1 1837650-er-revision-1.patch4.79 KBAmitaibu
PASSED: [[SimpleTest]]: [MySQL] 114 pass(es).
[ View ]

Comments

Status:Active» Needs review
StatusFileSize
new4.79 KB
PASSED: [[SimpleTest]]: [MySQL] 114 pass(es).
[ View ]

We still need to deal with entityreference_field_property_callback() - we might need to write our own getter callback.

Hi,
I'm interested in this and tried the patch.
It is adding a column for the revision id, but it does not store any value there.
Is this supposed to work?

Greetings,
Alex

Also interested in storing revisions.

Is the goal to provide a select to let the user select the appropriate revision to use after an initial object is selected, or to provide a field setting that will control whether the reference record will be fixed to a specific revision?

FYI the patch still applies cleanly to the current 7.x-1.x codebase.

I've confirmed that when the revision field is assigned a specific value that the correct revision of the referenced content *does* load.

StatusFileSize
new8.31 KB
PASSED: [[SimpleTest]]: [MySQL] 119 pass(es).
[ View ]

This patch adds a new option to the two included field selectors (EntityReference_SelectionHandler_Generic and EntityReference_SelectionHandler_Views) that will cause the specific revision_id to be saved when the referencing object is saved. This can be used to provide a rudimentary content workflow for referenced objects when coupled with e.g. Bean.

StatusFileSize
new840 bytes
new8.98 KB
FAILED: [[SimpleTest]]: [MySQL] Unable to apply patch entityreference-n1837650-9.patch. Unable to apply patch. See the log in the details link for more information.
[ View ]

Updating reference to variable location.

@Albert: Thanks, I forgot that I moved the setting around and it became a field-level setting.

Status:Needs review» Needs work

The last submitted patch, entityreference-n1837650-9.patch, failed testing.

StatusFileSize
new672 bytes
new8.33 KB
PASSED: [[SimpleTest]]: [MySQL] 119 pass(es).
[ View ]

Wrong patch file, my apologies.

Status:Needs work» Needs review

StatusFileSize
new7.31 KB
PASSED: [[SimpleTest]]: [MySQL] 119 pass(es).
[ View ]

The code I was trying to run in entityreference_field_presave() wasn't going to work correctly due to how the various APIs work, so I'm spinning it off as a separate sandbox. This patch includes the 'lock_revisions' option though as food for thought.

StatusFileSize
new9.06 KB
PASSED: [[SimpleTest]]: [MySQL] 119 pass(es).
[ View ]

Patch based on @DamienMcKenna's work, previously the revision was not 'locked'. It was overwritten with each edit to the latest revision of the referenced entity.

StatusFileSize
new9.16 KB
PASSED: [[SimpleTest]]: [MySQL] 119 pass(es).
[ View ]

Small fix: previous patch gave an error when saving new entities with an entityreference field.

The patch in #16 seems to be working for me.

StatusFileSize
new12.19 KB
PASSED: [[SimpleTest]]: [MySQL] 121 pass(es).
[ View ]

This patch in combination with the patch in #1788568: entity_metadata_wrapper does not load correct revisions (comment #9) adds the metadatawrapper functionality on top of the previous patch.

StatusFileSize
new17.11 KB
PASSED: [[SimpleTest]]: [MySQL] 121 pass(es).
[ View ]

Small fix for when the referenced entity no longer exists.

StatusFileSize
new18.56 KB
PASSED: [[SimpleTest]]: [MySQL] 121 pass(es).
[ View ]

Views support added.

StatusFileSize
new13.68 KB
PASSED: [[SimpleTest]]: [MySQL] 121 pass(es).
[ View ]

Sorry, patch from an other issue got mixed in with the previous one.

StatusFileSize
new14.1 KB
PASSED: [[SimpleTest]]: [MySQL] 121 pass(es).
[ View ]

Reroll

Issue summary:View changes
StatusFileSize
new10.92 KB
FAILED: [[SimpleTest]]: [MySQL] Unable to apply patch entityreference-reference_revisions-1837650-24.patch. Unable to apply patch. See the log in the details link for more information.
[ View ]

For us it makes the most sense to simply always have the current draft of the node save the latest version of the bean. However, old revisions of the node will keep the reference to old revisions of the bean. Meaning the changes to the bean will only be published when the node is published. So this is a different solution but it is a modified the version by Jelle_S. I removed the field setting for revision_lock and all bean revisions will always be used and associated with the node revisions.

Status:Needs review» Needs work

The last submitted patch, 24: entityreference-reference_revisions-1837650-24.patch, failed testing.