From 41d7fbf7d10a7f4b6be88341f4fd3689c1ef1876 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 9 Oct 2026 07:04:27 +0000 Subject: [PATCH] =?UTF-8?q?Afficher=20l'utilisateur=20tout=20juste=20cr?= =?UTF-8?q?=C3=A9=C3=A9=20m=C3=AAme=20si=20un=20filtre=20=C3=A9tait=20acti?= =?UTF-8?q?f?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Le filtre société et la recherche sont partagés avec l'écran Plannings : une valeur restée en place masquait le compte créé, alors que le toast annonçait « Utilisateur enregistré ». Après une création, on remet les filtres à zéro pour que le nouveau compte soit visible. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01D5Bdayziw6tybgqETZoNSt --- frontend/public/js/app.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/frontend/public/js/app.js b/frontend/public/js/app.js index 2341cda..05025d3 100644 --- a/frontend/public/js/app.js +++ b/frontend/public/js/app.js @@ -837,6 +837,14 @@ if (edit) await api(`/users/${user.id}`, { method: 'PUT', body }); else await api('/users', { method: 'POST', body }); closeDialog(); + if (!edit) { + // The company filter and search are shared with "Plannings": a leftover + // value would hide the account just created, as if it had not been saved. + state.filterCompany = 'all'; + state.search = ''; + $('us-co').value = 'all'; + $('us-q').value = ''; + } toast('Utilisateur enregistré'); await refreshUsers(); } catch (err) { toast(err.message, 'error'); }