danmarsden / moodle-plagiarism_urkund

Ouriginal plagiarism plugin for Moodle (previously called Urkund)
https://ouriginal.com/
12 stars 19 forks source link

lib.php: get correct context for coursemodule settings page #136

Closed alexmorrisnz closed 4 years ago

alexmorrisnz commented 4 years ago

This is caused by the move to the standard_elements moodle function which switched the context from the course to the course module Pull request that caused this issue is #127

I switched $context to also use course context, however you may want to keep this on course module? Not sure. I have also added a better check in checkreceiver.js if it does fail as the previous check didn't work when it was passed an unexpected value in the error value.

danmarsden commented 4 years ago

nice catch - merged!