Skip to content

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

@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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy