2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-18 13:05:42 +00:00

Remove client-side length validation in form inputs (#3911)

* Remove client-side length validation in form inputs

- Let the server throw an error (so the user sees it)

* Update instances of models.URLField to InvenTreeURLField
This commit is contained in:
Oliver
2022-11-10 12:51:15 +11:00
committed by GitHub
parent fb77158496
commit 57a20be5c3
8 changed files with 57 additions and 20 deletions

View File

@ -2330,16 +2330,6 @@ function constructInputOptions(name, classes, type, parameters, options={}) {
opts.push(`value='${parameters.default}'`);
}
// Maximum input length
if (parameters.max_length != null) {
opts.push(`maxlength='${parameters.max_length}'`);
}
// Minimum input length
if (parameters.min_length != null) {
opts.push(`minlength='${parameters.min_length}'`);
}
// Maximum value
if (parameters.max_value != null) {
opts.push(`max='${parameters.max_value}'`);