Merge branch 'master' of github.com:h5p/h5p-php-library

content-upgrade-on-upload
Frode Petterson 2018-12-20 16:17:58 +01:00
commit 4a9c3c7881
1 changed files with 1 additions and 1 deletions

View File

@ -239,7 +239,7 @@ H5P.XAPIEvent.prototype.getScore = function () {
*/ */
H5P.XAPIEvent.prototype.getContentXAPIId = function (instance) { H5P.XAPIEvent.prototype.getContentXAPIId = function (instance) {
var xAPIId; var xAPIId;
if (instance.contentId && H5PIntegration && H5PIntegration.contents) { if (instance.contentId && H5PIntegration && H5PIntegration.contents && H5PIntegration.contents['cid-' + instance.contentId]) {
xAPIId = H5PIntegration.contents['cid-' + instance.contentId].url; xAPIId = H5PIntegration.contents['cid-' + instance.contentId].url;
if (instance.subContentId) { if (instance.subContentId) {
xAPIId += '?subContentId=' + instance.subContentId; xAPIId += '?subContentId=' + instance.subContentId;