Description
Subject of the issue/enhancement/features
During QS of a Course with the LanguagePicker Plugin and the PageLevelProgress Plugin the Picker did not work in the Content Pages, only in the menues.
After looking into it we discovered that the pageLevelProgress throws Errors.
Your environment
- Framework 5.39.15
- Chrome, Edge, Firefox, newest Versions
- Windows 11
Steps to reproduce
You try to change the language in a content page of a course.
Expected behaviour
The course loads the respective language folder in /course
Actual behaviour
The course breaks, all the plugins dont work anymore and the language doesnt change. But if you use the browser back arrows to navigate to a menue, the language changes and the course works again.
Code Analysis
In the /js/completionCalculations.js we added the following:
if (contentObjectModel) {
// contentObjectModel is undefined therefore perform will throw an Error
perform(contentObjectModel);
}
in lines 74-77 which fixes the Issue.
But maybe there is a better solution?
Metadata
Metadata
Assignees
Labels
Type
Projects
Status