1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-06-25 20:57:25 +02:00

Fichier "Mon compte" & modifications mineures

This commit is contained in:
galaxyoyo
2019-09-09 22:42:38 +02:00
parent 57d2bb9bec
commit fac2b29f4a
5 changed files with 157 additions and 137 deletions

View File

@ -18,7 +18,6 @@ if (isset($_POST["validate"])) {
if (isset($_POST["select"])) {
$team->selectForFinal(true);
$team->setValidationStatus(ValidationStatus::NOT_READY);
$tournament = Tournament::fromId($team->getTournamentId());
$sols = $tournament->getAllSolutions($team->getId());
/** @var Solution $sol */
foreach ($sols as $sol) {
@ -36,9 +35,9 @@ if (isset($_POST["select"])) {
if (isset($_POST["download_zip"])) {
$final = isset($_POST["final"]);
$tournament = $final ? $FINAL : Tournament::fromId($team->getTournamentId());
$tournament_dest = $final ? $FINAL : $tournament;
$file_name = getZipFile(DocumentType::PARENTAL_CONSENT, $tournament->getId(), $team->getId());
$file_name = getZipFile(DocumentType::PARENTAL_CONSENT, $tournament_dest->getId(), $team->getId());
header("Content-Type: application/zip");
header("Content-Disposition: attachment; filename=\"Documents de l'équipe " . $team->getTrigram() . ".zip\"");