diff --git a/CHANGES.md b/CHANGES.md index 7a736ef2..3a077c4e 100755 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,8 +1,10 @@ # Changelog ## Version 13.0.04 -# Correction -- Importation d'utilisateur en masse, le bouton de téléchargement d'un modèle était inopérant. +# Corrections +- Erreur d'édition d'un profil de niveau 1, exemple membre simple. +- Le profil de membre simple affichait le gestionnaire de fichiers dans tous les cas. +- Importation d'utilisateurs en masse, le bouton de téléchargement d'un modèle était inopérant. # Améliorations - Supprime la gestion d'erreur à l'étape 4 de la mise à jour automatique. - Modifie l'URL de téléchargement des mises à jour. diff --git a/core/module/user/user.php b/core/module/user/user.php index 6ae7d2fa..c274739c 100644 --- a/core/module/user/user.php +++ b/core/module/user/user.php @@ -539,7 +539,8 @@ class user extends common // Effacer les données du numéro de profil ancien $group = $this->getInput('profilEditGroup', helper::FILTER_STRING_SHORT, true); - $profil = $this->getInput('profilEditProfil', helper::FILTER_STRING_SHORT, true); + // Les profils 1 sont désactivés dans le formulaire + $profil = empty($this->getInput('profilEditProfil')) ? '1' : $this->getInput('profilEditProfil') ; $oldProfil = $this->getInput('profilEditOldProfil', helper::FILTER_STRING_SHORT); if ($profil !== $profil) { $this->deleteData(['profil', $group, $oldProfil]); @@ -549,7 +550,7 @@ class user extends common $data = [ 'name' => $this->getInput('profilEditName', helper::FILTER_STRING_SHORT, true), 'readonly' => false, - 'permanent' => $this->getInput('profilEditGroup', helper::FILTER_STRING_LONG, true) === '1' ? true : false, + 'permanent' => $group === '1' ? true : false, 'comment' => $this->getInput('profilEditComment', helper::FILTER_STRING_SHORT, true), 'filemanager' => $this->getInput('profilEditFileManager', helper::FILTER_BOOLEAN), 'file' => [