Merge pull request #2619 from dpalou/MOBILE-3523

MOBILE-3523 quiz: Fix download ddmarker files
main
Juan Leyva 2020-11-24 12:00:16 +01:00 committed by GitHub
commit 241dbdada1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -124,7 +124,7 @@ export class AddonQtypeDdMarkerHandler implements CoreQuestionHandler {
getAdditionalDownloadableFiles(question: any, usageId: number): string[] {
this.questionHelper.extractQuestionScripts(question, usageId);
if (question.amdArgs && typeof question.amdArgs[1] !== 'undefined') {
if (question.amdArgs && typeof question.amdArgs[1] == 'string') {
// Moodle 3.6+.
return [question.amdArgs[1]];
}