Problem/Motivation
There is a plethora of issues for nested IEFs. Like:
- Created entities of lower levels are lost
- Entities of lower levels throw when saved twice
Some, mabe all of this may be explained by the non-well-defined nature of the entities in \Drupal\inline_entity_form\WidgetSubmit::doSubmit.
That above issues depended on the order of subform submission, supports that conjecture.
Proposed resolution
Implement a reverse lexicographic IEF-ID sort on entities before saving them to ensure inside-out saving
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork inline_entity_form-3203958
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
geek-merlinBanzai! 🍾
Everything green, so no promises broken. So let's get this in, too.
Comment #5
geek-merlinComment #6
geek-merlinComment #9
geek-merlinComment #11
geek-merlinTest coverage is proven in that issue.