From 57ba3878d3a434e7a6c8d8c7d507eeaf0e38d902 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robin=20Bo=CC=88ning?= Date: Thu, 4 Dec 2025 11:34:47 +0100 Subject: [PATCH] allow removal of alchemy_roles in UI The clear buttons have disappeared due to a change in alchemy_cms: https://github.com/AlchemyCMS/alchemy_cms/pull/3252 Since we want to allow admin users to remove roles from users, we need to add the clear buttons here. (cherry picked from commit b916c4f57e0f8c3dfa16fd5bd29fd90a20a9d185) --- app/views/alchemy/admin/users/_fields.html.erb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/views/alchemy/admin/users/_fields.html.erb b/app/views/alchemy/admin/users/_fields.html.erb index 0d94a45e..e3c17ecd 100644 --- a/app/views/alchemy/admin/users/_fields.html.erb +++ b/app/views/alchemy/admin/users/_fields.html.erb @@ -16,7 +16,8 @@ input_html: { multiple: true, is: 'alchemy-select', - class: 'alchemy_selectbox' + class: 'alchemy_selectbox', + data: { allow_clear: true } }, as: 'select' %> <% end %>