Page 1 of 1

[FIXED] Table highlighting for international cups

Posted: Fri Nov 28, 2008 6:40 am
by ircarrascal
A minor bug ...

I've created a master definition for Libertadores cup, similar to UEFA CL (europe_champ_league or something like that). So I can use the same one in all the south-american leagues.

So for example I have, for choosing teams:

...
<choose_team>
<choose_team_sid>LEAGUE1</choose_team_sid>
<number_of_teams>3</number_of_teams>
<start_idx>1</start_idx>
<end_idx>3</end_idx>
</choose_team>
....
<choose_team>
<choose_team_sid>peru1</choose_team_sid>
<number_of_teams>1</number_of_teams>
<start_idx>1</start_idx>
<end_idx>6</end_idx>
<randomly>1</randomly>
<generate>1</generate>
</choose_team>
...

So the first part of this code selects the first three from the country league, whichever it is (could be Peru for example). But then, so other countries can use it too I have to add a line for the Peru definition, hence the second part of the code.

Here's the problem: The table for peru1 highlights the first 6, not the first three, as it should be. Problem goes away if I don't use start_idx, end_idx but then sometimes that results in the very unlikely event of low ranked teams going through. I can also do star_idx=1, end_idx=3 but then you have the same teams from each country over and over every season.

Posted: Fri Nov 28, 2008 9:16 am
by gyboth
Use your code (with 1-3, 1-6), this is a bug and is going to get fixed.

Posted: Sun Jan 04, 2009 8:55 am
by gyboth
Fixed in SVN, thanks for the reminder ;-)