Problem/Motivation

I have a node, with revisioning enabled.
It has a paragraphs field.
That paragraphs field has a field collection field.
In some circumstances when saving the exception:

The host entity cannot be changed.

Is thrown by field collection.

This appears to be because field collection looks to see if the host entity is the default revision, which it is, because the paragraph has been saved. This then forces the field collection item to think that it is also the default revision, but it isn't. So fetching the host details fails.

Similar issues have been noted in

Proposed resolution

Add part of the patch give in #2658882-27: "the host entity cannot be changed" error with VBO.

Remaining tasks

Review! Write tests.

User interface changes

None

API changes

None

Data model changes

None

Comments

Steven Jones created an issue. See original summary.

steven jones’s picture

Status: Active » Needs review
StatusFileSize
new475 bytes
renatog’s picture

Status: Needs review » Reviewed & tested by the community

Hi guys.

I applied the patch and really works good.

Very good!

renatog’s picture

Status: Reviewed & tested by the community » Fixed

Committed and pushed to the dev branch.

Thank you very for your contribution.

Best,

  • RenatoG committed 96ca8ca on 7.x-1.x authored by Steven Jones
    Issue #2993080 by Steven Jones, RenatoG: "The host entity cannot be...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.