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:
@ -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}'`);
|
||||
|
Reference in New Issue
Block a user