# HG changeset patch # User bsw # Date 1633942514 -7200 # Node ID 8d7c4d542c3d81d1a179290f98f141c43c751928 # Parent eb34fe00cf5c17171f7992203402598edbd9a1ae Correctly store answer option for checkboxes diff -r eb34fe00cf5c -r 8d7c4d542c3d app/main/survey/_action/answer.lua --- a/app/main/survey/_action/answer.lua Mon Oct 11 10:52:52 2021 +0200 +++ b/app/main/survey/_action/answer.lua Mon Oct 11 10:55:14 2021 +0200 @@ -54,7 +54,7 @@ for i, answer_option in ipairs(question.answer_options) do local answer = param.get("answer_" .. answer_option) if answer then - table.insert(answers, answer) + table.insert(answers, answer_option) end end answer.answer = answers