Merge branch 'master' of ssh://trac@sapsailing.com/home/trac/git

This commit is contained in:
Kai Börnert committed 2018-04-12 11:15:05 +02:00
commit bc3aa4f854
2 files changed
+4 -2

No files matched your search

@@ -63,7 +63,7 @@ public class CompetitorDTOImpl extends CompetitorWithoutBoatDTOImpl implements C
@Override
public String getShortInfo() {
String result = null;
if (getShortName() != null) {
if (getShortName() != null && !getShortName().trim().isEmpty()) {
result = getShortName();
} else if (getBoat() != null) {
result = getBoat().getSailId() != null ? getBoat().getSailId() : getBoat().getName();
@@ -185,7 +185,9 @@ public class CompetitorEditDialog extends DataEntryDialog<CompetitorDTO> {
color = new InvalidColor(iae);
}
}
CompetitorDTO result = new CompetitorDTOImpl(name.getText(), shortName.getText(), color, email.getText(),
CompetitorDTO result = new CompetitorDTOImpl(name.getText(),
shortName.getText().trim().isEmpty() ? null : shortName.getText(), color,
email.getText().trim().isEmpty() ? null : email.getText(),
/* twoLetterIsoCountryCode */ null,
threeLetterIocCountryCode.getValue(threeLetterIocCountryCode.getSelectedIndex()),
/* countryName */ null, competitorToEdit.getIdAsString(),