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 with 2 additions and 1 deletion.
  1. +2 −1 Source/SPFieldEditorController.m
@@ -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.