Count matches, when marked as “Done”
-
My customer uses the volleyball rule, but they have the special rule if a team already won 2 times, the third game will not happen. But if we leave the results of the last game blank, the game is not counted as done. I suggest that you calculate the matches as finished when the status is “Done”:
I changed Team.php, line 510:
$num_matches = $league->getMatches(array(‘count’ => true, ‘team_id’ => $this->id, ‘limit’ => false, ‘status’ => ‘Abgeschlossen’, ‘match_day’ => -1, ‘cache’ => false, ‘reset_query_args’ => true));Of course, it would be better to use this getStatusOptions() function, i just hardcoded the german translation…
- The topic ‘Count matches, when marked as “Done”’ is closed to new replies.