Skip to content

It is possible to store empty required fields in drafts #8394

@pointout

Description

@pointout

Bug report

Describe the bug

If a collection entry is unpublished, you can save empty fields, although they are required.

Steps to reproduce the behavior

  1. create a required field (just tested it with textfields) in a collection
  2. add an entry to the collection
  3. unpublish the entry
  4. delete the content of the required textfield and save the entry
  5. empty required field is saved

Expected behavior

show error message, that the field is required

System

  • Strapi version: 3.2.4
  • Database: sqlite
  • Operating system: windows 10

Metadata

Metadata

Assignees

No one assigned

    Labels

    severity: mediumIf it breaks the basic use of the product but can be worked aroundsource: core:strapiSource is core/strapi package

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions