From 663dfd12ec97d01de2757d458456f95e21648e2e Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Sun, 21 May 2023 17:38:38 +0200 Subject: [PATCH] =?UTF-8?q?Filtrage=20page=20depuis=20moderateur=20Groupe?= =?UTF-8?q?=20fixe=20en=20=C3=A9dition?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/module/user/user.php | 13 +++---------- core/module/user/view/profilEdit/profilEdit.php | 9 +++++---- 2 files changed, 8 insertions(+), 14 deletions(-) diff --git a/core/module/user/user.php b/core/module/user/user.php index 11deff7b..74632a52 100644 --- a/core/module/user/user.php +++ b/core/module/user/user.php @@ -527,18 +527,11 @@ class user extends common // Soumission du formulaire if ($this->isPost()) { - $oldGroup = $this->getUrl(2); - $group = $this->getInput('profilEditGroup'); - $profil = $this->getUrl(3); - // Changement de groupe, effacer le profil de l'ancien groupe et incrément le profil - if ($oldGroup !== $group) { - $this->deleteData(['profil', $oldGroup, $profil]); - $profil = helper::increment($profil, $this->getData(['profil', $group])); - } + $this->setData([ 'profil', - $group, - $profil, + $this->getInput('profilEditGroup'), + $this->getUrl(3), [ 'name' => $this->getInput('profilEditName', helper::FILTER_STRING_SHORT, true), 'readonly' => false, diff --git a/core/module/user/view/profilEdit/profilEdit.php b/core/module/user/view/profilEdit/profilEdit.php index 4e51ac67..858effae 100644 --- a/core/module/user/view/profilEdit/profilEdit.php +++ b/core/module/user/view/profilEdit/profilEdit.php @@ -27,9 +27,10 @@ ]); ?>
- 'Groupe', - 'selected' => $this->getUrl(2) + 'value' => self::$groups[$this->getUrl(2)], + 'disabled' => true ]); ?>
@@ -44,7 +45,7 @@ - +getUrl(2) >= 2): ?>
@@ -93,7 +94,7 @@
- +