forked from ZwiiCMS-Team/ZwiiCampus
Revert "1.7.08 Le lien de désinscription par l'utilisateur ne supprime plus l'historique."
This reverts commit 84df59c52b
.
This commit is contained in:
parent
cf3936b7c0
commit
1cb54d46b1
@ -51,7 +51,7 @@ class common
|
||||
const ACCESS_TIMER = 1800;
|
||||
|
||||
// Numéro de version
|
||||
const ZWII_VERSION = '1.7.08';
|
||||
const ZWII_VERSION = '1.7.07';
|
||||
|
||||
// URL autoupdate
|
||||
const ZWII_UPDATE_URL = 'https://forge.chapril.org/ZwiiCMS-Team/campus-update/raw/branch/master/';
|
||||
|
@ -1551,7 +1551,6 @@ class course extends common
|
||||
|
||||
/**
|
||||
* Désinscription d'un participant
|
||||
* La désinscription ne supprime pas l'historique
|
||||
*/
|
||||
public function unsuscribe()
|
||||
{
|
||||
@ -1563,7 +1562,7 @@ class course extends common
|
||||
&& array_key_exists($courseId, $this->getData(['course']))
|
||||
) {
|
||||
$userId = $this->getUser('id');
|
||||
//$this->deleteData(['enrolment', $courseId, $userId]);
|
||||
$this->deleteData(['enrolment', $courseId, $userId]);
|
||||
$_SESSION['ZWII_SITE_CONTENT'] = 'home';
|
||||
// Valeurs en sortie
|
||||
$this->addOutput([
|
||||
|
Loading…
Reference in New Issue
Block a user