diff --git a/app/views/phases/_guidances_notes.html.erb b/app/views/phases/_guidances_notes.html.erb index 3545372..1e10697 100644 --- a/app/views/phases/_guidances_notes.html.erb +++ b/app/views/phases/_guidances_notes.html.erb @@ -68,11 +68,11 @@ <% end %> <% guidance_accordion_id = 0 %> - <% guidance_set.keys.each_with_index do |i, group| %> + <% guidance_set.keys.each_with_index do |group, i| %> <% obj = guidance_groups.select{ |gg| gg.name == group }.first %> <% if obj.present? %>
- <% accordion_id = "#{gg.id}-#{i}" %> + <% accordion_id = "#{obj.id}-#{i}" %> <%= render partial: 'guidance_groups/show', locals: { group: guidance_set[group], question: question, guidance_accordion_id: accordion_id } %>