Make sure the shuffled question order is properly mapped to the original order.

HFP-56
pull/4/head^2
thomasmars 2016-10-19 15:28:31 +02:00
parent c12d21d71d
commit 1b8abad544
1 changed files with 2 additions and 2 deletions

View File

@ -212,11 +212,11 @@ H5P.QuestionSet = function (options, contentId, contentData) {
// Retrieve questions and indexes // Retrieve questions and indexes
questions = questionOrdering.map(d => d[0]); questions = questionOrdering.map(d => d[0]);
questionOrder = questionOrdering.map(d => d[1]); var newOrder = questionOrdering.map(d => questionOrder[d[1]])
return { return {
questions:questions, questions:questions,
questionOrder:questionOrder questionOrder:newOrder
}; };
} }