From 06f40c99b00096f67657acbd0deb4ea07914908f Mon Sep 17 00:00:00 2001 From: Kartheek Palla Date: Thu, 28 Mar 2019 10:42:33 +0530 Subject: [PATCH] Issue #SB-11001 fix: question missing assets migration task --- app/scripts/contenteditor/migration/questionsetfix1-task.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/scripts/contenteditor/migration/questionsetfix1-task.js b/app/scripts/contenteditor/migration/questionsetfix1-task.js index 8d08d5c9..4b5a29f6 100644 --- a/app/scripts/contenteditor/migration/questionsetfix1-task.js +++ b/app/scripts/contenteditor/migration/questionsetfix1-task.js @@ -102,7 +102,9 @@ org.ekstep.contenteditor.migration.patch_1 = new (Class.extend({ } _.each(questionData.media, function (media) { - media.src = instance.getRelativeURL(media.src) + if(media.src){ + media.src = instance.getRelativeURL(media.src) + } }) _.each(quesAssets, function (quesAsset) { // quesAsset.url = getRelativeURL(quesAsset.url);