correction MSIN-4370

This commit is contained in:
2026-05-16 10:40:38 -04:00
parent 714b0e11ed
commit 57ffc59524

View File

@ -3279,7 +3279,7 @@ if ($title != '') {
<div class="bib-view-team-number">
<?php
echo 'SIM=' . $p['no_equipe'];
echo $p['no_equipe'];
?>
</div>
@ -3503,6 +3503,7 @@ function fxProcessBatchAssignments($epr_id, $participants, $tabRanges, $mode = '
$assignments = [];
$teamMap = [];
$nextTeamNumber = 1;
$updatedTeams = [];
if (empty($participants) || empty($tabRanges)) {
return $assignments;
}
@ -3604,7 +3605,19 @@ if ($teamKey > 0) {
";
$objDatabase->fxQuery($sqlUpdate);
if ($teamNumber > 0 && !isset($updatedTeams[$teamKey])) {
$sqlTeam = "
UPDATE resultats_epreuves_commandees
SET no_equipe = $teamNumber
WHERE pec_id_original = $teamKey
AND epr_id = $epr_id
";
$objDatabase->fxQuery($sqlTeam);
$updatedTeams[$teamKey] = true;
}
break 2;
}
}