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

DB column "grouping" is an xmldb reserved word: cannot add questiosn to activequiz #63

Open
moodleulpgc opened this issue Aug 29, 2023 · 0 comments

Comments

@moodleulpgc
Copy link

Hi:
Active Quiz has a DB table named "activequiz", with a column named "grouping".
But in versions of moodle > 3.5 "grouping" is a reserved word, cannot be used for table or columns names in the DB.
The result is that when trying to use the module and adding a question from bank to a quiz instance, a Fatal error is generated due to to failure tor write to DB in thar field 'grouping'

I have renamed the column to "teamsgrouping", and changed the code in the few scripts that actually contains references to ->grouping (writing ->teamsgrouping) and it works fine.

For 4.x, some renaming of calls to qbank classes is needed, but woks.

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

1 participant