correction MSIN-4370
This commit is contained in:
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user