Skip to content
Permalink
Browse files
Fix display of column type in FieldEditorController for JSON type (pa…
…rt of #2199)
  • Loading branch information
dmoagx committed Feb 9, 2017
1 parent 325b447 commit 2c3a59464192a1f942c36fcc08d1b452eca3f059
Showing 1 changed file with 2 additions and 1 deletion.
@@ -249,7 +249,8 @@ - (void)editWithObject:(id)data
if ([fieldType length])
[label appendString:fieldType];

if (maxTextLength > 0)
//skip length for JSON type since it's a constant and MySQL doesn't display it either
if (maxTextLength > 0 && ![[fieldType uppercaseString] isEqualToString:SPMySQLJsonType])
[label appendFormat:@"(%lld) ", maxTextLength];

if (!_allowNULL)

0 comments on commit 2c3a594

Please sign in to comment.