bug4425 readded missing chart types

This commit is contained in:
Kai Boernert committed 2018-03-22 09:49:11 +01:00
1 parent 7ba5086c34
commit 99931dc142
2 files changed
+4 -5

No files matched your search

@@ -354,9 +354,9 @@ public enum DetailType implements Serializable {
allowed.add(RACE_AVERAGE_SIGNED_CROSS_TRACK_ERROR_IN_METERS);
allowed.add(RACE_RATIO_BETWEEN_TIME_SINCE_LAST_POSITION_FIX_AND_AVERAGE_SAMPLING_INTERVAL);
allowed.add(RACE_CURRENT_LEG);
allowed.addAll(getRaceExpeditionDetailTypes());
allowed.addAll(getRaceBravoDetailTypes());
allowed.addAll(getRaceExtendedBravoDetailTypes());
allowed.addAll(getRaceExpeditionDetailTypes());
return allowed;
}
@@ -6920,9 +6920,8 @@ public class SailingServiceImpl extends ProxiedRemoteServiceServlet implements S
@Override
public List<DetailType> determineDetailTypesForCompetitorChart(String leaderboardGroupName, RegattaAndRaceIdentifier identifier) {
List<DetailType> availableDetailsTypes1 = new ArrayList<>();
List<DetailType> availableDetailsTypes = availableDetailsTypes1;
final List<DetailType> availableDetailsTypes = new ArrayList<>();
availableDetailsTypes.addAll(DetailType.getAutoplayDetailTypesForChart());
final DynamicTrackedRace trackedRace = getService().getTrackedRace(identifier);
if (trackedRace != null) {
boolean hasBravoTrack = false;
@@ -6943,7 +6942,7 @@ public class SailingServiceImpl extends ProxiedRemoteServiceServlet implements S
}
}
if (leaderboardGroupName != null) {
LeaderboardGroupDTO group = getLeaderboardGroupByName(leaderboardGroupName, false);
final LeaderboardGroupDTO group = getLeaderboardGroupByName(leaderboardGroupName, false);
if (group != null ? group.hasOverallLeaderboard() : false) {
availableDetailsTypes.add(DetailType.OVERALL_RANK);
}