-
Notifications
You must be signed in to change notification settings - Fork 18
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 with Quiz activity, conflict with Grade in settings form #18
Comments
I have a similar issue with mod/hvp (H5P)
And I found the issue is caused by: Workaround: |
@mchurchward , do you have any idea how to fix this? |
Cf the PR associated to that feature #8 (comment) My workaround for H5P is right down ugly but could not find any other solution for now. |
Found a working workaround:
Which does not break H5P and Metadata data. |
@Birssan , great insight! just saw your comment :-) and I wished I saw it earlier, as I spend too much valuable time xdebugging the code to find it. Indeed, I came to the same conclusion as you did. I ran some tests, and It seems nothing in the local_metadata table data gets broken by this, so I am going to try it for a while, and see that there is no data corruption in the mdl_local_metadata table by this hack. But, I am still looking for @mchurchward review and insights on this. |
I believe H5P is actually responsible for this issue. The plugin seems to change the form object received by the hook function and is not "formed" like it is in the core modules plug-ins. (or so I believed as there is the same issue with mod_quiz...) Your solution is definitely better than mine as it's generic! |
Context :
A debug message appears :
If we try to save the form, a new error message appears and there is no change in settings.
The text was updated successfully, but these errors were encountered: