Make sure we get answered statements in the result log

pull/6/head Drupal-7.x-1.11
Svein-Tore Griff With 2015-11-01 00:30:45 +01:00
parent 1c99d7ed61
commit ccfa2d516f
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ H5P.EventDispatcher.prototype.setActivityStarted = function() {
* @param {H5P.XAPIEvent} event
*/
H5P.xAPICompletedListener = function (event) {
if (event.getVerb() === 'completed' && !event.getVerifiedStatementValue(['context', 'contextActivities', 'parent'])) {
if ((event.getVerb() === 'completed' || event.getVerb() === 'answered') && !event.getVerifiedStatementValue(['context', 'contextActivities', 'parent'])) {
var score = event.getScore();
var maxScore = event.getMaxScore();
var contentId = event.getVerifiedStatementValue(['object', 'definition', 'extensions', 'http://h5p.org/x-api/h5p-local-content-id']);