1.17.02 bug suscribe view

This commit is contained in:
Fred Tempez 2025-01-14 09:43:27 +01:00
parent 9356a75946
commit b95d341dfa
2 changed files with 2 additions and 2 deletions

View File

@ -51,7 +51,7 @@ class common
const ACCESS_TIMER = 1800;
// Numéro de version
const ZWII_VERSION = '1.17.01';
const ZWII_VERSION = '1.17.02';
// URL autoupdate
const ZWII_UPDATE_URL = 'https://forge.chapril.org/ZwiiCMS-Team/campus-update/raw/branch/master/';

View File

@ -52,7 +52,7 @@
<div class="col3 offset7">
<?php echo template::submit('courseSwapSubmit', [
'value' => course::$swapMessage['submitLabel'],
'disabled' => !(course->courseIsAvailable($this->getUrl(2))
'disabled' => !($this->courseIsAvailable($this->getUrl(2))
&& !($this->getData(['course', $this->getUrl(2), 'limitEnrolment']) === true
&& $this->getData(['course', $this->getUrl(2), 'limitEnrolmentDate']) <= time())
),