From ffa9a1d49d058ce0c03ba59e355add70b5972135 Mon Sep 17 00:00:00 2001 From: j0kerZ Date: Wed, 30 Nov 2022 03:41:28 +0100 Subject: [PATCH] JI-4277 Add subcontentId to xapi result --- branchingQuestion.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/branchingQuestion.js b/branchingQuestion.js index 2ffb36d..e93f6c2 100644 --- a/branchingQuestion.js +++ b/branchingQuestion.js @@ -366,7 +366,8 @@ H5P.BranchingQuestion = (function () { definition.correctResponsesPattern = []; definition.choices = []; definition.extensions = { - 'https://h5p.org/x-api/no-correct-answer': 1 + 'https://h5p.org/x-api/no-correct-answer': 1, + 'http://h5p.org/x-api/h5p-subContentId': self.subContentId }; const alternatives = parameters.branchingQuestion.alternatives;