Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Field validation ignored inside App #10480

Closed
3 tasks done
minyan-gu opened this issue Dec 13, 2021 · 0 comments
Closed
3 tasks done

Field validation ignored inside App #10480

minyan-gu opened this issue Dec 13, 2021 · 0 comments

Comments

@minyan-gu
Copy link

Preflight Checklist

Describe the Bug

The field validation seems ignored even on Number type.

Tried:

  1. Set the Min and Max values on the interface tab, doesn't work when create/update the item.
  2. Set a Between rule inside the condition tab, doesn't work neither.

![image](https://user-images.githubuserconte
image
nt.com/49973259/145851725-c97f3d97-c30f-4946-bb8b-70319e07f2f2.png)
image
image

To Reproduce

  1. Create a test collection with a single Number typed field.

  2. Set the Min and Max values on the interface tab. e.g. Min: 0 and Max: 100

  3. Create a new item or edit existing one, input an out of range value still can save successfully. Expected behaviour: Show validation error when click save.

  4. Also pls try to set a Between rule inside the condition tab, it doesn't work as well as nothing prevents the save action.

Errors Shown

nothing.

What version of Directus are you using?

9.2.1

What version of Node.js are you using?

16.13.0

What database are you using?

Postgres 13

What browser are you using?

Chrome

What operating system are you using?

macOS

How are you deploying Directus?

Docker

@directus directus locked and limited conversation to collaborators Dec 13, 2021
@rijkvanzanten rijkvanzanten converted this issue into discussion #10483 Dec 13, 2021

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant