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

Command icon 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

geek-merlin created an issue. See original summary.

geek-merlin’s picture

Banzai! 🍾
Everything green, so no promises broken. So let's get this in, too.

  • geek-merlin committed d362597 on 8.x-1.x
    Issue #3203958 by geek-merlin: Implement a reverse lexicographic IEF-ID...
geek-merlin’s picture

Status: Active » Fixed
geek-merlin’s picture

Status: Fixed » Needs work

geek-merlin’s picture

Status: Needs work » Fixed

  • geek-merlin committed 86b47bb on 8.x-1.x
    Issue #3203958 by geek-merlin: Implement a reverse lexicographic IEF-ID...
geek-merlin’s picture

Test coverage is proven in that issue.

Status: Fixed » Closed (fixed)

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