Skip to content

Commit

Permalink
#255 Document fields: when receiving empty string values from fronten…
Browse files Browse the repository at this point in the history
…d, convert them to nulls
  • Loading branch information
teosarca committed Mar 17, 2017
1 parent 8c2ad0e commit dccde39
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/main/java/de/metas/ui/web/window/model/DocumentField.java
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,13 @@ private Object convertToValueClassAndCorrect(final Object value)
return valueBDCorrected;
}
}
else if(valueConv instanceof String)
{
if (((String)valueConv).isEmpty())
{
return null;
}
}

return valueConv;
}
Expand Down

0 comments on commit dccde39

Please sign in to comment.