Skip to content
Snippets Groups Projects
Commit b431e8c8 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

fix on not null zip code in sql

parent b3255fba
No related branches found
No related tags found
1 merge request!1Appointments dev
......@@ -230,7 +230,7 @@ public class Subject {
public void setZipCode(String zipCode) {
if (zipCode != null && zipCode.length() > 7) {
logger.warn("Surname too long. Ignoring: " + zipCode);
zipCode = zipCode.substring(0, 7);
this.zipCode = "";
} else {
this.zipCode = zipCode;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment