fix: ne pas effacer les rôles modération si le formulaire n’inclut pas la liste (bot pas prêt)

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-05-03 14:20:18 +02:00
co-authored by Cursor
parent ec296dd226
commit ecf59d645e
2 changed files with 10 additions and 4 deletions
+3
View File
@@ -159,6 +159,9 @@
<div>
<label class="block text-sm font-medium text-gray-700 dark:text-gray-300 mb-2">Rôles Staff autorisés</label>
{% if roles %}
<input type="hidden" name="moderation_roles_in_form" value="1">
{% endif %}
{% set selected_roles = (configuration.getValue('moderation_staff_role_ids') or '').split(',') %}
{% if roles|length > 1 %}