FINERACT-326 : Edit datatable page not able to save if the single character is entered in New Name field

This commit is contained in:
nazeer1100126
2017-03-10 18:28:08 +05:30
parent f1f3d65161
commit f04b3719c3
@@ -182,7 +182,7 @@ public class DatatableCommandFromApiJsonDeserializer {
final String newName = this.fromApiJsonHelper.extractStringNamed("newName", column);
baseDataValidator.reset().parameter("newName").value(newName).ignoreIfNull().notBlank().notExceedingLengthOf(50)
.isNotOneOfTheseValues("id", fkColumnName).matchesRegularExpression(DATATABLE_NAME_REGEX_PATTERN);
.isNotOneOfTheseValues("id", fkColumnName).matchesRegularExpression(DATATABLE_COLUMN_NAME_REGEX_PATTERN);
if (this.fromApiJsonHelper.parameterExists("length", column)) {
final String lengthStr = this.fromApiJsonHelper.extractStringNamed("length", column);