Problem/Motivation
Sometimes paragraphs referenced in an entity which is the default revision do not get saved as a default revision.
This can be specially problematic if the site is using Entity Reference Revisions fields for the paragraphs.
Proposed resolution
Update ContentEntityStorageTrait and force all paragraph entities to be a default revision when then host/parent is.
Remaining tasks
Do it.
User interface changes
None.
API changes
None
Data model changes
None
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | 2993851-7.patch | 1.25 KB | axicdv |
Comments
Comment #2
manuel garcia commentedComment #5
rynebl commentedA Patch for a problem I was facing when paragraphs were attached and multiversion is being used.
Comment #6
rynebl commentedComment #7
axicdv commentedWhen a duplicate paragraph is created (method createDuplicate), the RevisionItem of the _rev field is not reset. For such paragraphs, it is impossible to get a default revision.
Comment #8
axicdv commentedComment #9
l0keIn my opinion #7 should be a proper way to handle.
I didn't find another case when paragraphs aren't saved as a default revision except for the usage of
createDuplicate()method. Particular case for it is usage ofparagraphs_librarysubmodule.Comment #11
jeqq commentedThank you!
Comment #12
jeqq commented