Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

Fields: Add a clear error message when length is missing #230

Closed
wellingguzman opened this issue Jul 2, 2018 · 1 comment
Closed

Fields: Add a clear error message when length is missing #230

wellingguzman opened this issue Jul 2, 2018 · 1 comment

Comments

@wellingguzman
Copy link
Contributor

Describe the bug
Creating a field that requires a valid length it throws an mysql error.

To Reproduce
Steps to reproduce the behavior:

  1. Make the following request
POST https://example.com/_/fields/test_collection

{
    "sort": null,
    "field": "rijk",
    "type": "CSV",
    "interface": "checkboxes",
    "default_value": null,
    "options": {},
    "readonly": false,
    "required": false,
    "unique": false,
    "note": "leuk",
    "hidden_input": false,
    "hidden_list": false,
    "length": null,
    "validation": null,
    "collection": "test_collection"
}
  1. Get the mysql error
wellingguzman added a commit that referenced this issue Jul 2, 2018
wellingguzman added a commit that referenced this issue Jul 4, 2018
@wellingguzman
Copy link
Contributor Author

Closed by 9268217 and dc87574

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant