Skip to content

Commit

Permalink
updated migration to correctly insert the type name
Browse files Browse the repository at this point in the history
  • Loading branch information
da1nerd committed Mar 11, 2016
1 parent 7dad449 commit cb1efbc
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,13 @@ private static boolean v4(File path) throws Exception {
}
}
JSONObject typeJson = new JSONObject();
TranslationType translationType = TranslationType.get(typeId);
typeJson.put("id", typeId);
typeJson.put("name", "");
if(translationType != null) {
typeJson.put("name", translationType.getName());
} else {
typeJson.put("name", "");
}
manifest.put("type", typeJson);
}

Expand Down

0 comments on commit cb1efbc

Please sign in to comment.