data-hub icon indicating copy to clipboard operation
data-hub copied to clipboard

[Bug]: Can't fetch data of editables for documents with inheritance

Open neusta-diaspero opened this issue 2 years ago • 1 comments

Expected behavior

I expect editables and their content on documents or headless documents that have been pasted via inheritance (with Content-Master Document) to be exposed via GraphQL.

image

Actual behavior

Documents or headless documents that have been copied and pasted using inheritance (setting a Content-Master Document) do not expose their content and editables via GraphQL.

Picture below is showing query and response for:

  1. "original" document and its editables,
  2. pasted document not using inheritance (see "paste") showing same editables and
  3. pasted document using inheritance (see "paste_inheritance") showing empty field editables

image

Remark: Content and editables are getting exposed only when they are overwritten in copied document with inheritance.

Steps to reproduce

In Pimcore Demo …

  • Copy a document e.g. "Data Quality" (ID: 193)
  • Paste this document using inheritance (of structure and content)
  • Try to query for pasted document and its editables via GraphQL
  • Field editables is empty

neusta-diaspero avatar Jul 15 '22 06:07 neusta-diaspero

@neusta-diaspero Again, that´s something we need to support in the pimcore repository first. I created a corresponding issue for that: https://github.com/pimcore/pimcore/issues/12762

mcop1 avatar Jul 26 '22 09:07 mcop1