ajout undossard equipe meme participent MSIN-4370

This commit is contained in:
2026-05-16 11:05:07 -04:00
parent 688f864c95
commit 734f9a899d

View File

@ -3502,6 +3502,7 @@ $teamMap = [];
$updatedTeams = [];
$teamBibMap = [];
$nextTeamNumber = 1;
if (empty($participants) || empty($tabRanges)) {
return $assignments;
}
@ -3543,6 +3544,16 @@ $teamKey = (int)($p['pec_id'] ?? 0);
$teamNumber = 0;
$teamMode = (int)($p['epr_bib_team_mode'] ?? 1);
if ($teamMode !== 3 && $teamKey > 0) {
if (!isset($teamMap[$teamKey])) {
$teamMap[$teamKey] = $nextTeamNumber;
$nextTeamNumber++;
}
$teamNumber = $teamMap[$teamKey];
}
$foundBib = null;
if ($teamMode === 3 && $teamKey > 0) {