From 1cb54d46b11818a4fc55e58eb8bad8a2f865af2c Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Tue, 2 Apr 2024 18:12:24 +0200 Subject: [PATCH] =?UTF-8?q?Revert=20"1.7.08=20Le=20lien=20de=20d=C3=A9sins?= =?UTF-8?q?cription=20par=20l'utilisateur=20ne=20supprime=20plus=20l'histo?= =?UTF-8?q?rique."?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 84df59c52bc27205dba53bf125fd3733ab018b82. --- core/core.php | 2 +- core/module/course/course.php | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/core/core.php b/core/core.php index 41aff3a..bc1c7bd 100644 --- a/core/core.php +++ b/core/core.php @@ -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/'; diff --git a/core/module/course/course.php b/core/module/course/course.php index ecf8a44..cc4d2bd 100644 --- a/core/module/course/course.php +++ b/core/module/course/course.php @@ -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([