# HG changeset patch # User bsw # Date 1633942080 -7200 # Node ID f5c41bffb3ffa5dbe220c013907a44166abd109d # Parent 3d61fa0d6474bcdadf25705a1d44fe404e0e3ac4 Fixed syntax error diff -r 3d61fa0d6474 -r f5c41bffb3ff app/main/survey/_action/answer.lua --- a/app/main/survey/_action/answer.lua Mon Oct 11 10:47:25 2021 +0200 +++ b/app/main/survey/_action/answer.lua Mon Oct 11 10:48:00 2021 +0200 @@ -49,7 +49,7 @@ end answer.answer = given_answer -if question.answer_type == "checkbox" then +elseif question.answer_type == "checkbox" then local answers = json.array() for i, answer_option in ipairs(question.answer_options) do local answer = param.get("answer_" .. answer_option) diff -r 3d61fa0d6474 -r f5c41bffb3ff app/main/survey/participate.lua --- a/app/main/survey/participate.lua Mon Oct 11 10:47:25 2021 +0200 +++ b/app/main/survey/participate.lua Mon Oct 11 10:48:00 2021 +0200 @@ -84,7 +84,7 @@ } end } - if question.answer_type == "checkbox" then + elseif question.answer_type == "checkbox" then for i, answer_option in ipairs(question.answer_options) do ui.container{ content = function() ui.tag{ tag = "label", attr = {