Skip to content

Empty embedded form results in NULL value in collection. #9375

Closed
@ghost

Description

Hi,

Assume you have a collection of documents belonging to a directory. The documents get created as embedded forms in the directory form. All is fine, validation (also of the documents) works until.... You create and submit an empty embeded form.

The following happens:
No instance of document is created, no validators are called. Instead a NULL value is put in the collection of documents in the directory, which of course leads to lots of errors.

I think the form component should ignore an empty embedded form, or reject it in general, but not put a NULL value in the underlying collection without raising any error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions