From 1fd0249ff649a940ac643582a0c3709a49a71dc1 Mon Sep 17 00:00:00 2001 From: elviabth Date: Wed, 1 May 2024 14:11:39 +0200 Subject: [PATCH] fix survey select --- .../decidim/anonymous_codes/admin/code_groups/_form.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/decidim/anonymous_codes/admin/code_groups/_form.html.erb b/app/views/decidim/anonymous_codes/admin/code_groups/_form.html.erb index 407cc7b..536f6c2 100644 --- a/app/views/decidim/anonymous_codes/admin/code_groups/_form.html.erb +++ b/app/views/decidim/anonymous_codes/admin/code_groups/_form.html.erb @@ -15,5 +15,5 @@
- <%= form.select :resource_id, surveys, include_blank: true, label: t(".resource") %> + <%= form.select :resource_id, surveys.map { |survey| [survey[:title], survey[:id]] }, include_blank: true, label: t(".resource") %>