fix for Bug 1484 - Error in UI when trying to create a regatta leaderboard

This commit is contained in:
fmittag committed 2013-07-06 14:21:18 +02:00
1 parent c7c27ca6a3
commit 089ff256f8
2 files changed
+4 -4

No files matched your search

@@ -66,9 +66,9 @@ public abstract class AbstractEventManagementPanel extends AbstractRegattaPanel
int selIndex = this.availableRegattasListBox.getSelectedIndex();
// the zero index represents the 'no selection' text
if (selIndex > 0) {
String itemText = this.availableRegattasListBox.getItemText(selIndex);
String itemValue = this.availableRegattasListBox.getValue(selIndex);
for (RegattaDTO regatta : this.availableRegattas) {
if (regatta.getName().equals(itemText)) {
if (regatta.getName().equals(itemValue)) {
result = regatta;
break;
}
@@ -132,9 +132,9 @@ public abstract class RegattaLeaderboardDialog extends AbstractLeaderboardDialog
RegattaDTO result = null;
int selIndex = regattaListBox.getSelectedIndex();
if (selIndex > 0) { // the zero index represents the 'no selection' text
String itemText = regattaListBox.getItemText(selIndex);
String itemValue = regattaListBox.getValue(selIndex);
for (RegattaDTO regattaDTO : existingRegattas) {
if (regattaDTO.getName().equals(itemText)) {
if (regattaDTO.getName().equals(itemValue)) {
result = regattaDTO;
break;
}