Problem/Motivation

Changes for this where first introduced in #2901158: Changes are lost when collapsing a paragraphs subform including an inline_entity_form. Then reverted in #3270348: Regression from #2901158.

Steps to reproduce

Create a paragraph type with an entity_reference field using inline_entity_form.
Add a paragraphs field to a node, make the paragraph type available and use paragraphs widget in 'Closed' edit mode.

Add a node with a paragraph, enter some test values and save. Edit the node again, edit the paragraph, now collapse the paragraphs subform: Your changes to the subform will be lost.

Proposed resolution

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

heddn created an issue. See original summary.

volkerk made their first commit to this issue’s fork.

daniel.bosen’s picture

@heddn is it possible to get a failing test or some step by step instructions to reproduce the regression in #3270348: Regression from #2901158? That would be very helpful for fixing it. Thanks!

volkerk’s picture

StatusFileSize
new6.83 KB
szeidler’s picture

Status: Active » Needs work

The patch/MR seems to not apply anymore since the recent 1.0.0-rc12 release.

chr.fritsch made their first commit to this issue’s fork.

chr.fritsch’s picture

StatusFileSize
new6.97 KB
jansete’s picture

With this patch, now applies to InlineEntityFormComplex, we would need tests for this as well.

silviuchingaru made their first commit to this issue’s fork.

SilviuChingaru’s picture

volkerk’s picture

@heddn can you elaborate on the regression you mentioned in the reverted #2901158: Changes are lost when collapsing a paragraphs subform including an inline_entity_form

This commit caused regressions with non paragraph IEF fields. I have an (albiet complex) IEF implementation for user that completely broke after this commit. Any chance this could see a revert while a test coverage and fixes are added?

I guess we need a test for this, otherwise this issue is going nowhere.

elaman’s picture

#9 causes error with Paragraph:

TypeError: Drupal\Component\Utility\NestedArray::getValue(): Argument #2 ($parents) must be of type array, null given, called in /var/www/html/web/modules/contrib/paragraphs/src/Plugin/Field/FieldWidget/InlineParagraphsWidget.php on line 1320 in Drupal\Component\Utility\NestedArray::getValue() (line 69 of core/lib/Drupal/Component/Utility/NestedArray.php).

volkerk’s picture

StatusFileSize
new24.74 KB
the_g_bomb’s picture

Version: 8.x-1.x-dev » 3.x-dev

Changing to target the latest branch

feuerwagen made their first commit to this issue’s fork.

anybody’s picture

Reading through the issue summary, isn't this a major issue with the risk of losing data unexpectedly?