Needs review
Project:
Required API
Version:
3.0.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Oct 2025 at 07:41 UTC
Updated:
10 Oct 2025 at 12:30 UTC
Jump to comment: Most recent
Inline entity form widgets that rely on `required_api` lose their validation state when child entities fail required field checks. The module’s form error handler removes messages keyed by inline entity form elements (`inline_entity_form`, `ief_*`), so the nested entity form closes and the parent saves with missing required data.
Update `RequiredApiFormErrorHandler::handleFormErrors()` to skip clearing error entries whose keys contain `inline_entity_form` or `ief_`. This preserves validation failures generated by inline entity form submissions, keeping the child form open with its error message and preventing invalid entities from being saved. I attach patch with this fix.
| Comment | File | Size | Author |
|---|---|---|---|
| keep-ief-validation-errors.patch | 878 bytes | pablo_pukha |
Comments
Comment #2
dieterholvoet commentedCould you test the MR from #3549912: RequiredApiRecursiveValidator discards violations triggered by regular constraints first? We have been discarding too many constraint violations and that issue aims to fix that, without handling Inline Entity Form specifically. If that were to fix your problem as well, that would be even better.