liquid_feedback_frontend
diff app/main/survey/_action/answer.lua @ 1748:8d7c4d542c3d
Correctly store answer option for checkboxes
author | bsw |
---|---|
date | Mon Oct 11 10:55:14 2021 +0200 (2021-10-11) |
parents | f5c41bffb3ff |
children |
line diff
1.1 --- a/app/main/survey/_action/answer.lua Mon Oct 11 10:52:52 2021 +0200 1.2 +++ b/app/main/survey/_action/answer.lua Mon Oct 11 10:55:14 2021 +0200 1.3 @@ -54,7 +54,7 @@ 1.4 for i, answer_option in ipairs(question.answer_options) do 1.5 local answer = param.get("answer_" .. answer_option) 1.6 if answer then 1.7 - table.insert(answers, answer) 1.8 + table.insert(answers, answer_option) 1.9 end 1.10 end 1.11 answer.answer = answers