From c75b71f2171ac3275f5eaa367afb3c8dc64cf609 Mon Sep 17 00:00:00 2001 From: F TEMPEZ Date: Tue, 2 Apr 2024 12:54:19 +0200 Subject: [PATCH] =?UTF-8?q?1.7.07=20Le=20lien=20de=20d=C3=A9sinscription?= =?UTF-8?q?=20par=20l'utilisateur=20ne=20supprime=20plus=20l'historique.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core.php | 2 +- core/module/course/course.php | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/core/core.php b/core/core.php index bc1c7bd..41aff3a 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.07'; + const ZWII_VERSION = '1.7.08'; // 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 cc4d2bd..ecf8a44 100644 --- a/core/module/course/course.php +++ b/core/module/course/course.php @@ -1551,6 +1551,7 @@ class course extends common /** * Désinscription d'un participant + * La désinscription ne supprime pas l'historique */ public function unsuscribe() { @@ -1562,7 +1563,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([