mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-08 21:30:57 +00:00
fix for Bug 1484 - Error in UI when trying to create a regatta leaderboard
This commit is contained in:
1 parent
c7c27ca6a3
commit
089ff256f8
2 files changed
+4
-4
No files matched your search
+2
-2
@@ -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;
|
||||
}
|
||||
|
||||
+2
-2
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user