Added lost part of old fix

HVP-212
pull/25/head
Frode Petterson 2016-07-15 16:14:32 +02:00
parent 43748bc4b8
commit 9f7b545f02
1 changed files with 2 additions and 1 deletions

View File

@ -134,6 +134,7 @@ H5P.init = function (target) {
});
dialog.open();
}
// If previousState is false we don't have a previous state
});
// Create new instance.
@ -1849,7 +1850,7 @@ H5P.createTitle = function (rawTitle, maxLength) {
H5PIntegration.contents = H5PIntegration.contents || {};
var content = H5PIntegration.contents['cid-' + contentId] || {};
var preloadedData = content.contentUserData;
if (preloadedData && preloadedData[subContentId] && preloadedData[subContentId][dataId]) {
if (preloadedData && preloadedData[subContentId] && preloadedData[subContentId][dataId] !== undefined) {
if (preloadedData[subContentId][dataId] === 'RESET') {
done(undefined, null);
return;