Hello,

When editing a referenced entity, entity browser does not load the latest revision. So when there is a workflow and a contributor makes a new draft of a referenced entity (through the entity browser, yes, I think this is not the intended way to use content moderation and entity browser), if the user reedit the referenced entity with the entity browser, he/she does still see the published revision.

But the new revision is made.

I will make a patch.

Also this issue made me discover a bug in the param converter for the edit form. I will open a dedicated issue.

Comments

Grimreaper created an issue. See original summary.

grimreaper’s picture

Assigned: grimreaper » Unassigned
Status: Active » Needs review

Here is the patch.

Thanks for the review.

grimreaper’s picture

Better with the patch.

grimreaper’s picture

About the other issue it was because when debuging in core/lib/Drupal/Core/ParamConverter/EntityConverter.php, $definition['type'] has the value 'entity:{entity_type}'.

I was expecting {entity_type} to be replaced by the actual value. Seing code from core it seems that it is ok.

So only this issue.

oknate’s picture

Thanks for the patch. It looks simple enough. I'll test it soon.

AlexKirienko’s picture

I have the same issue on the current project.
This patch works fine for me.
Thank you, Grimreaper.

socialnicheguru’s picture

In entity_browser 2.11 this is fixed.

smustgrave’s picture

Status: Needs review » Closed (outdated)

Can confirm this is fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.