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

Error when user has no group and 'Allow students to see the results' is enabled #63

Open
odeialba opened this issue Feb 12, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@odeialba
Copy link
Owner

I could not replicate it, but this bug was reported:
This error happens only in the app. If you have a user without any group and you have the option 'Allow students to see the results' enabled, when the user submits a vote, there is an error saying: Coding error detected, it must be fixed by a programmer: moodle_database::get_in_or_equal() does not accept empty arrays
The error might come from trying to show the results from a group that doesn't exist.
If the user is in a group or if the options 'Allow students to see the results' is disabled, there is no error.

@odeialba odeialba added the bug Something isn't working label Feb 12, 2024
@odeialba
Copy link
Owner Author

I was able to "not see" the results for users without group, but still didn't get any error. But that was because the results that were being shown belonged to a group that didn't submit any vote. That problem is related to #66

@odeialba
Copy link
Owner Author

I was able to see the error in the console on Moodle 4.4dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant