-
Notifications
You must be signed in to change notification settings - Fork 6
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
Type parameter missing in save() #11
Comments
We also have this problem and at this time we resolve it in the DB when it occurs. |
Hi @bendec, you may want to look at the PR: It is a really small change you may want to implement as a hotfix on your server. Cheers |
Thanks! We will do this. |
This has been released with v3.11-r1 |
This issue is still present in v3.9-r3 (actually every release but v3.11-r1). Would be cool if it could be fixed there as well. As far as I can see, @christianwolters patch / pull request is applicable there as well. Cheers |
Hi @ll,
the parameter type is missing in
https://github.com/moodleuulm/moodle-availability_password/blob/63d662bedf4d1e026917957127b0b8064415c1f3/classes/condition.php#L184
I created a small PR #10
Without this parameter backup/restore is broken, when this availability is used together with other access restrictions,
e.g. the relevant part of the json looks like:
"c":[{"password":"PROBE"},{"type":"completion","cm":470,"e":1},{"type":"completion","cm":472,"e":1},{"type":"completion","cm":472,"e":1}]
-> no type in first element
-> Moodle does not know how to handle this and complains with invalid availability structure error.
Cheers
Christian
The text was updated successfully, but these errors were encountered: