Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
jtesser committed May 17, 2017
1 parent a627431 commit 0d743a2
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ private static com.dotmarketing.portlets.structure.model.Field transformToOld(Fi

com.dotmarketing.portlets.structure.model.Field old = new com.dotmarketing.portlets.structure.model.Field();
old.setDefaultValue(field.defaultValue());
old.setFieldContentlet(field.dbColumn());
old.setFieldContentlet(LegacyFieldTransformer.buildLegacyFieldContent(field));
old.setFieldName(field.name());
old.setFieldRelationType(field.relationType());
old.setFieldType(field.typeName());
Expand All @@ -97,6 +97,14 @@ private static com.dotmarketing.portlets.structure.model.Field transformToOld(Fi

}

private static String buildLegacyFieldContent(Field field){
String fieldContent = field.dbColumn();
if(field.typeName().endsWith("BinaryField")){
fieldContent = "binary" + field.sortOrder();
}
return fieldContent;
}

private static Field transformToNew(com.dotmarketing.portlets.structure.model.Field oldField) {
final String fieldType = oldField.getFieldType();

Expand Down

0 comments on commit 0d743a2

Please sign in to comment.