Fixed so not all behaviour of subcontent will be overwritten.
parent
33f9ea3ba1
commit
41063026b4
|
@ -117,11 +117,9 @@ H5P.QuestionSet = function (options, contentId) {
|
|||
// override content parameters.
|
||||
if (params.override.overrideButtons) {
|
||||
// Extend subcontent with the overrided settings.
|
||||
$.extend(question.params, {
|
||||
behaviour: {
|
||||
enableRetry: params.override.overrideRetry,
|
||||
enableSolutionsButton: params.override.overrideShowSolutionButton
|
||||
}
|
||||
$.extend(question.params.behaviour, {
|
||||
enableRetry: params.override.overrideRetry,
|
||||
enableSolutionsButton: params.override.overrideShowSolutionButton
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue