ECA Form: Broken Ajax rebuilds when Inline Entity Form is involved
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3534406. --> Reported by: [mxh](https://www.drupal.org/user/1124384) Related to !550 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>When eca_form and inline_entity_form are both installed, there appears a problem when using an "Inline Entity Form - Simple" widget.</p> <h4 id="summary-steps-reproduce">Steps to reproduce</h4> <ul> <li>New Drupal 11.2 installation with standard profile. ECA 2.1.10 and most recent Inline Entity Form module. Install following modules: <code>eca_base, eca_form, eca_content, eca_user, bpmn_io, inline_entity_form</code></li> <li>Go to "Manage fields" of the "article" content type. There add two file upload fields. Add an entity reference field to node of type "page".</li> <li>Go to "Manage form display" of the "article" content type. There enable "Inline Entity Form - Simple" widget for the entity reference field to the "page" node. Place it underneath the title field, so that the two file upload fields appear below the inline entity form.</li> <li>Now try to create a new "article" node at /node/add/article. Fill in required fields. Skip filling the inline entity form of "page" content, instead try to upload a file at one of the two file upload fields.</li> </ul> <p>You will see that whenever trying to upload a file, the uploaded file does not appear - the widget stays empty after the Ajax refresh.</p> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <p>None yet.</p> <h3 id="summary-remaining-tasks">Remaining tasks</h3> <p>The problem is being caused by ECA when invoking method <code>Drupal\eca_form\HookHandler::inlineEntityFormAfterBuild</code>. When not invoking this method, the problem does not show up.</p> <h3 id="summary-ui-changes">User interface changes</h3> <h3 id="summary-api-changes">API changes</h3> <h3 id="summary-data-model-changes">Data model changes</h3> > Related issue: [Issue #3469697](https://www.drupal.org/node/3469697)
issue