field max length 100

This commit is contained in:
yuri
2018-08-10 14:43:31 +03:00
parent 5673d253e4
commit f22856dd91
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -98,8 +98,8 @@ class FieldManager
throw new BadRequest();
}
if (strlen($name) > 255) {
throw new Error('Field name should not be longer than 255.');
if (strlen($name) > 100) {
throw new Error('Field name should not be longer than 100.');
}
if (is_numeric($name[0])) {
+1 -1
View File
@@ -72,7 +72,7 @@ Espo.define('views/admin/field-manager/edit', ['view', 'model'], function (Dep,
this.model.defs = {
fields: {
name: {required: true},
name: {required: true, maxLength: 100},
label: {required: true},
tooltipText: {}
}