From 75cc9d11df6e16efa07f062d2074f0f186370295 Mon Sep 17 00:00:00 2001 From: zmagod Date: Tue, 6 Feb 2018 16:06:15 +0100 Subject: [PATCH] fix error on checklists --- app/controllers/concerns/steps_actions.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/concerns/steps_actions.rb b/app/controllers/concerns/steps_actions.rb index 2676a2202..5f25c8709 100644 --- a/app/controllers/concerns/steps_actions.rb +++ b/app/controllers/concerns/steps_actions.rb @@ -18,7 +18,7 @@ module StepsActions new_checklists = step_params[:checklists_attributes] if new_checklists - new_checklists.each do |e| + new_checklists.to_h.each do |e| list = PreviousChecklist.new( e.second[:id].to_i, e.second[:name]