Make sure the shuffled question order is properly mapped to the original order.
HFP-56pull/4/head^2
parent
c12d21d71d
commit
1b8abad544
|
@ -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
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue