From 1b8abad5449bd4ed4b987816df9f507196d21a67 Mon Sep 17 00:00:00 2001 From: thomasmars Date: Wed, 19 Oct 2016 15:28:31 +0200 Subject: [PATCH] Make sure the shuffled question order is properly mapped to the original order. HFP-56 --- js/questionset.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/questionset.js b/js/questionset.js index 7f0218d..7aa037b 100644 --- a/js/questionset.js +++ b/js/questionset.js @@ -212,11 +212,11 @@ H5P.QuestionSet = function (options, contentId, contentData) { // Retrieve questions and indexes questions = questionOrdering.map(d => d[0]); - questionOrder = questionOrdering.map(d => d[1]); + var newOrder = questionOrdering.map(d => questionOrder[d[1]]) return { questions:questions, - questionOrder:questionOrder + questionOrder:newOrder }; }