Skip to content
Snippets Groups Projects
Commit 03a90dba authored by echicken's avatar echicken :chicken:
Browse files

Pass 'answer' query value array instead of first element, submitPollAnswers...

Pass 'answer' query value array instead of first element, submitPollAnswers expects an array. Fixes #283 presumably.
parent ab139707
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
......@@ -106,7 +106,7 @@ if (request.has_param('call') && (http_request.method === 'GET' || http_request.
case 'submit-poll-answers':
if (request.has_params(['sub', 'id', 'answer'])) {
reply.success = submitPollAnswers(http_request.query.sub[0], http_request.query.id[0], http_request.query.answer[0]);
reply.success = submitPollAnswers(http_request.query.sub[0], http_request.query.id[0], http_request.query.answer);
}
break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment