liquid_feedback_frontend
changeset 1744:f5c41bffb3ff
Fixed syntax error
author | bsw |
---|---|
date | Mon Oct 11 10:48:00 2021 +0200 (2021-10-11) |
parents | 3d61fa0d6474 |
children | 49cb472e12d5 |
files | app/main/survey/_action/answer.lua app/main/survey/participate.lua |
line diff
1.1 --- a/app/main/survey/_action/answer.lua Mon Oct 11 10:47:25 2021 +0200 1.2 +++ b/app/main/survey/_action/answer.lua Mon Oct 11 10:48:00 2021 +0200 1.3 @@ -49,7 +49,7 @@ 1.4 end 1.5 answer.answer = given_answer 1.6 1.7 -if question.answer_type == "checkbox" then 1.8 +elseif question.answer_type == "checkbox" then 1.9 local answers = json.array() 1.10 for i, answer_option in ipairs(question.answer_options) do 1.11 local answer = param.get("answer_" .. answer_option)
2.1 --- a/app/main/survey/participate.lua Mon Oct 11 10:47:25 2021 +0200 2.2 +++ b/app/main/survey/participate.lua Mon Oct 11 10:48:00 2021 +0200 2.3 @@ -84,7 +84,7 @@ 2.4 } 2.5 end } 2.6 2.7 - if question.answer_type == "checkbox" then 2.8 + elseif question.answer_type == "checkbox" then 2.9 for i, answer_option in ipairs(question.answer_options) do 2.10 ui.container{ content = function() 2.11 ui.tag{ tag = "label", attr = {