mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-08 20:12:23 +00:00
Merge branch 'master' of ssh://trac@sapsailing.com/home/trac/git
This commit is contained in:
commit
bc3aa4f854
2 files changed
+4
-2
No files matched your search
+1
-1
@@ -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();
|
||||
|
||||
+3
-1
@@ -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(),
|
||||
|
||||
Reference in new issue
Block a user