Skip to content

Commit

Permalink
Fix display of column type in FieldEditorController for JSON type (pa…
Browse files Browse the repository at this point in the history
…rt of #2199)
  • Loading branch information
dmoagx committed Feb 9, 2017
1 parent 325b447 commit 2c3a594
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/SPFieldEditorController.m
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2c3a594

Please sign in to comment.