- Issue created by @adam-vessey
The call to $form_state->cleanValues() when submitting the embedded form ( https://git.drupalcode.org/project/inline_entity_form/-/blob/45bc6296271... ) can break expectations in the embedding form; for example: ctools wizards expect to be able to make use of the 'op' to control its flow ( https://git.drupalcode.org/project/ctools/-/blob/5a323c6e5072515148a54b4... ) however if a step embeds an inline entity form, the $form_state->cleanValues() call presently clears out the 'op' before the wizard makes use of it, and so the wizard is unable to proceed.
Embed an inline entity form.
In your submit handler, see the 'op' missing from your form state (as well as the couple of other values, form ID, build ID and token).
Some combination of:
Most straight-forward would be to just remove the call. According to the docs: https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21Form%21Fo...
This function can be used when a module wants to store all submitted form values, for example, by serializing them into a single database column.
Given we are not directly serializing the array of values ourselves, but instead allowing the form mode/display to extract and set values on the entity being built and calling any #entity_builders callbacks, calling ::cleanValues() does not seem appropriate in IEF's submission flow.
Active
3.0
Code