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

Single Activity Format - error #197

Closed
jdmagnore opened this issue Sep 4, 2024 · 4 comments
Closed

Single Activity Format - error #197

jdmagnore opened this issue Sep 4, 2024 · 4 comments
Assignees

Comments

@jdmagnore
Copy link

Moodle version: 4.1
Plugin version: 2024082700

Reproduce the error:

  1. Create new couser
  2. Select "Course format" --> "Single Activity Format"
  3. Select "Moodleoverflow"
  4. Save and display
  5. Put a name for Moodleoverflow activity
  6. Go to participants --> ERROR: Exception - Argument 1 passed to is_enrolled() must be an instance of context, null given, called in [dirroot]/mod/moodleoverflow/lib.php on line 478 (If you try to go to any other Course submenu you see this Exception)

Could you try to fix it? Thanks in advance 😊👍

@TamaroWalter TamaroWalter self-assigned this Sep 5, 2024
@TamaroWalter
Copy link
Contributor

Hi,

thank you for your report. I tested it on my system and experience the same bug. I'm on it!

@TamaroWalter
Copy link
Contributor

TamaroWalter commented Sep 5, 2024

Hi, I pushed a little commit that seems to solve the problem. Feel free to try it out if you like!

@xmontana
Copy link

xmontana commented Sep 5, 2024

Hi, I pushed a little commit that seems to solve the problem. Feel free to try it out if you like!

Thank you Tamaro, I confirm that it works 😁

@jdmagnore
Copy link
Author

Thank you!!!! 😊👍

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

No branches or pull requests

3 participants