As per the attached screenshot, there is one field collection with the name "field_apr_schedule" which is using with particular content type named "Apr Coursework".

And other one is Entity Reference with the name "field_add_existing_schedule" which is using the above field collection. Now when ever we edit the node "Apr Coursework" then it creates revision of whole node but not of "field_apr_schedule" field collection.

To make revisions of field collection we are using sandbox module "Field Collection Workbench Moderation". (https://www.drupal.org/sandbox/johnpitcairn/1991516)

Now in the entity reference, it is always showing the current revision of field collection instead of published version field collection "field_apr_schedule".

Please let me know how we can solve this so that entity reference will always show published field collection not current revision.

Thanks

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

gundeep created an issue. See original summary.

kiaraz’s picture

Issue summary: View changes
kiaraz’s picture

Category: Support request » Bug report
jmuzz’s picture

kiaraz’s picture

When we need to show field collection as entity reference then it is not picking published content instead always shows latest revision.

Requirement is to show published field collection as entity reference.

Thanks

kiaraz’s picture

Finally I have solved this issue. Issue occurred when we have more than one revisions then it always shows the latest revision instead of published revision.

I have created new patch and it is working fine if we are having more than one revisions or drafts.

kiaraz’s picture

FileSize
930 bytes