Skip to content

Issue in Combination with Language Change #252

Open
@WoBen07

Description

@WoBen07

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions