I have an entity that contains an Inline Entity Form. I need to validate a "deadline" date field in the inline entity to ensure it isn't past an "overall deadline" field in the parent entity.
Using the "Add New Entity" button opens an inline entity creation form, as expected. However, saving the parent form without saving or cancelling the inline creation form causes the inline entity to be automatically created, bypassing parent form validation and thus permitting erroneous field values.
Expected Result:
When the parent form is saved, if an inline entity is pending creation, but hasn't been saved or cancelled by the user, it should either automatically cancel creation or throw a form error to allow the user to decide whether to create or cancel the pending inline entity.
*This is my first time reporting a bug, so let me know if I'm missing any required information in my report.
Comment | File | Size | Author |
---|---|---|---|
#2 | saving-form-with-entity-pending-creation-skips-validation-2926859-2.patch | 829 bytes | nagendra.531 |
|
Comments
Comment #2
nagendra.531 CreditAttribution: nagendra.531 as a volunteer commentedShowing validation errors if the child entity fields has not passed validations on saving the parent form.
Comment #3
darvanenCan you provide steps to reproduce or a fail patch to assist review?
Comment #4
bojanz CreditAttribution: bojanz at Centarro commentedNeeds a test.