MC: Empty xAPI-data for non-randomized

Description

Reported OliverColeman here

When answer order is not randomised the xAPI data response element is always empty. It looks like this line in multichoice.js (around 855):

response += idMap === undefined ? $(params.userAnswers[i]).text() : idMap[params.userAnswers[i]];

should be:

response += idMap === undefined ? params.userAnswers[i] : idMap[params.userAnswers[i]];

At least that works in my brief tests.

Environment

None

Acceptance Criteria

xAPI statements should contain data for non-randomized data

Assignee

Pål Jørgensen

Reporter

Tom Arild Jakobsen

Labels

None

Funding

None

Code reviewer

Tom Arild Jakobsen

Released

None

Time tracking

2h

Fix versions

Sprint

None

Priority

Medium
Configure