Fixed integration bug.

d6
Frode Petterson 2015-02-27 14:53:38 +01:00
parent aac10b86fa
commit 1c1829b13b
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@ H5P.XAPIEvent.prototype.getVerb = function(full) {
H5P.XAPIEvent.prototype.setObject = function(instance) { H5P.XAPIEvent.prototype.setObject = function(instance) {
if (instance.contentId) { if (instance.contentId) {
this.data.statement.object = { this.data.statement.object = {
'id': H5P.contentDatas['cid-' + instance.contentId].url, 'id': H5PIntegration.contents['cid-' + instance.contentId].url,
'objectType': 'Activity', 'objectType': 'Activity',
'extensions': { 'extensions': {
'http://h5p.org/x-api/h5p-local-content-id': instance.contentId 'http://h5p.org/x-api/h5p-local-content-id': instance.contentId