AlexRaubach / ListFortress

Track X-Wing Second Edition Tournament Results
https://listfortress.com/
MIT License
13 stars 6 forks source link

"An error occured" while updating match results #39

Closed chrisalleng closed 3 years ago

chrisalleng commented 3 years ago

While attempting to update the winner and score for this match: https://listfortress.com/matches/74477/edit

to these values: Player 1: Sascha Wagner Player 1 points: 172 Player 2: Jeremy Batsch Player 2 points: 51 Result: win Winner: Sascha Wagner

An error is received: We're sorry, but something went wrong. If you are the application owner check the logs for more information.

AlexRaubach commented 3 years ago

Found the problem. I am using the Match class for both normal matches (that belong to tournaments) and Vassal League matches (which belong to a LeagueParticipant). In retrospect, maybe not the best decision.

A while back I changed where someone updating a league match would be redirected to but that isn't a valid redirect for a tournament match, thus the 500 error. I'll add some logic to handle that case in the next day or two

AlexRaubach commented 3 years ago

Fixed in 94f39349834cf0fcc188e0624d89be3ac9bb779f

chrisalleng commented 3 years ago

Thanks!