Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

Commit

Permalink
Update fix encoding for Creator & ModifierField
Browse files Browse the repository at this point in the history
  • Loading branch information
quocphien90 committed Jan 18, 2019
1 parent c76e019 commit ffa24cf
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions export.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,16 @@ func transformEncodingJSONValue(fields interface{}) interface{} {
groups = append(groups, group)
}
fieldEncodingValues = kintone.GroupField(groupField)
case kintone.CreatorField:
creatorField := fields.(kintone.CreatorField)
creatorField.Code, _ = transformStringFromEncoding(creatorField.Code)
creatorField.Name, _ = transformStringFromEncoding(creatorField.Name)
fieldEncodingValues = kintone.CreatorField(creatorField)
case kintone.ModifierField:
modifierField := fields.(kintone.ModifierField)
modifierField.Code, _ = transformStringFromEncoding(modifierField.Code)
modifierField.Name, _ = transformStringFromEncoding(modifierField.Name)
fieldEncodingValues = kintone.ModifierField(modifierField)
default:
fieldEncodingValues = fields
}
Expand Down

0 comments on commit ffa24cf

Please sign in to comment.