diff options
Diffstat (limited to 'Source/CustomQuery.m')
-rw-r--r-- | Source/CustomQuery.m | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/CustomQuery.m b/Source/CustomQuery.m index 7153e916..10b93a31 100644 --- a/Source/CustomQuery.m +++ b/Source/CustomQuery.m @@ -1723,6 +1723,11 @@ SPFieldEditorController *fieldEditor = [[SPFieldEditorController alloc] init]; + // Set max text length + if ([[columnDefinition objectForKey:@"typegrouping"] isEqualToString:@"string"] + && [columnDefinition valueForKey:@"char_length"]) + [fieldEditor setTextMaxLength:[[columnDefinition valueForKey:@"char_length"] intValue]]; + id editData = [[fieldEditor editWithObject:[[fullResult objectAtIndex:rowIndex] objectAtIndex:[[aTableColumn identifier] intValue]] fieldName:[columnDefinition objectForKey:@"name"] usingEncoding:[mySQLConnection encoding] |