Problem/Motivation

During the creation of an entity with multiple widget IEF value it and use it only records the entitées at first and then it submits the parent content then create the entity has no author. If ever triggers the parent soummision content + the form of the entity without the prior soumetre then in this case the entity has the author.

See differents case to screenshots.

Proposed resolution

This problem seems logical because now we get a submission in which iefSubmit triggerIefSubmit function and recovers complete information of the parent entity for the child. The problem is that if we add 1 or the entity via iefSubmit IEF and then the form is submitted can not recover the author as it does not yet exist this content (I think). We must find a way to recover the author of the entity the current user and not necessarily the user who create the content.

Remaining tasks

User interface changes

API changes

Data model changes

CommentFileSizeAuthor
IEF-anon.png88.75 KBwoprrr
IEF-anon2.png91.13 KBwoprrr
IEF-anon03.png103.31 KBwoprrr
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

woprrr’s picture

Currently the fact so do not have author in the case of confirmation of the entity seems normal because the parent entity has no author it even as she did not yet exist. The idea would be to proceed exactly as for https://www.drupal.org/node/2494959

For new entities added with IEF:
Create nodes in parent node's language. If parent has no language set (because it has not been created yet), set language to undefined and iterate over all children to update their languages when parent is saved.

outcome that aims to provide a fixed point by default in case of lack of information by the parent entity. Or for our case if the parent entity is not yet recorded and that the author does not exist, then create child entity with the user who submitted the entity via IEF. The fact display the author field add too much complexity to the contribution via the entity reference fields for my taste.

woprrr’s picture

Issue tags: +Media Initiative
woprrr’s picture

Status: Active » Closed (fixed)

This bug is fixed in Last version of drupal 8 commit (a9f3cb50588e834df59a14049f41c3dfe20f15bd).