Skip to content

Commit

Permalink
correct response on gapselect/sequencing
Browse files Browse the repository at this point in the history
  • Loading branch information
milt committed Nov 21, 2024
1 parent 7021536 commit e925082
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,10 @@ function gapselect(array $config, \stdClass $event, \stdClass $questionattempt,
),
],
'result' => [
'response' => implode ('[,]', $selections),
'response' => implode ('[,]', array_map(
function($selection) {
return utils\slugify($selection);
}, $selections)),
'completion' => $questionattempt->responsesummary !== null,
'success' => $questionattempt->rightanswer === $questionattempt->responsesummary,
'extensions' => [
Expand Down

0 comments on commit e925082

Please sign in to comment.