From 3c265ab36fbab297aa533f42042ca8bdd1f2dc4f Mon Sep 17 00:00:00 2001 From: Katelyn Gigante Date: Wed, 10 Jan 2024 13:43:03 +1100 Subject: [PATCH] Better implementation of league stuff --- gatherling/lib_form_helper.php | 2 +- gatherling/models/Event.php | 5 +++++ gatherling/models/Standings.php | 4 ++-- gatherling/player.php | 2 +- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/gatherling/lib_form_helper.php b/gatherling/lib_form_helper.php index 9ab6be094..1497b9086 100644 --- a/gatherling/lib_form_helper.php +++ b/gatherling/lib_form_helper.php @@ -156,7 +156,7 @@ function leagueOpponentDropMenu($eventname, $round, $player, $subevent) { $event = new Event($eventname); $player_standings = new Standings($eventname, $player->name); - $playernames = $player_standings->League_getAvailable_Opponents($subevent, $round); + $playernames = $player_standings->League_getAvailable_Opponents($subevent, $round, $event->leagueLength()); echo '