scores lost

Jun 13, 2014 at 6:17 AM
anyone has encountered this weird problem where some user scores were lost after updating the score list?
Jun 13, 2014 at 9:31 AM
It happens after the user Saves his predictions again in the matches webpart (eg. adds new scores to later matches). After this all closed/disabled matches will loose his predictions.
For example: I added the result of the Brazil match and updated the tables. Since the first match is disabled and I added my predictions later to the Spain game, my prediction for the Brazil game was lost.

The problem is in the MatchesWebPart.cs, line 540 and 544. Maybe in this for cycle the disabled matches should not get 99 as home and away scores, just leave them as they are. It is OK to do this in the init phase (for cycle in line 513)
Jun 13, 2014 at 12:23 PM
or you could substitute line 545



if (teamScore1.Enabled && teamScore2.Enabled)
Jun 13, 2014 at 1:25 PM
Edited Jun 13, 2014 at 1:29 PM
thx for the info
can you upload the updated wsp with the corrected code? thx