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

Beaucoup de petites modifications

This commit is contained in:
galaxyoyo
2019-10-06 13:29:20 +02:00
parent 8ab6a7a3aa
commit 866d4a2744
15 changed files with 107 additions and 19 deletions

View File

@ -29,8 +29,10 @@ if (isset($_POST["request_validation"])) {
$has_error = true;
$error_message = "Vous devez cocher la case qui vous engage à participer à l'intégralité des Correspondances.";
}
else
else {
$_SESSION["team"]->setValidationStatus(ValidationStatus::WAITING);
Mailer::sendRequestValidationMail($team);
}
}
/** @var Question[][] $questions_received */
@ -95,6 +97,7 @@ class MyTeam
$this->team->setProblem($this->problem);
$DB->exec("UPDATE `teams` SET `problem` = " . $this->problem . " WHERE `id` = " . $this->team->getId() . ";");
$DB->exec("UPDATE `documents` SET `problem` = " . $this->problem . " WHERE `team` = " . $this->team->getId() . ";");
header("Location: $URL_BASE/mon-equipe");
}