Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for single Activity format #198

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

TamaroWalter
Copy link
Contributor

@TamaroWalter TamaroWalter commented Sep 5, 2024

Fix for issue #197.

Bug: When creating a single activity course with moodleoverflow and going to "participant" within the course, an error occurs.

Problem: The lib function moodleoverflow_extend_settings_navigation uses the $PAGE variable to access certain variables like the context or the instance id of moodleoverflow. This does not work apparently, as a null exception is throwed.

Solution: Instead of using the global variable $PAGE, the function now uses a "local" page variable from the function parameter $settingsnav (The page variable is retrieved with $settingsnav->get_page()). This approach is used by other moodle plugin like the ratingallocate plugin from Learnweb.

@TamaroWalter TamaroWalter self-assigned this Sep 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant