Closed dasistwas closed 1 year ago
Moodle version: 3.10 mootyper version:
$plugin->version = 2022012700; // The current module version (Date: YYYYMMDDXX).
$plugin->requires = 2017111300; // Requires Moodle 3.4.
$plugin->cron = 60; // Period for cron to check this module (secs).
$plugin->component = 'mod_mootyper';
$plugin->maturity = MATURITY_STABLE;
$plugin->release = '4.1.1 (Build: 2022012700)';
Fix: mod/mootyper/classes/privacy/provider.php
@@ -62,7 +62,7 @@ class provider implements
* @param collection $collection The initialised collection to add items to.
* @return collection The updated collection of metadata items.
*/
public static function get_metadata(collection $collection) {
public static function get_metadata(collection $collection) : collection {
$collection->add_database_table('mootyper_attempts', [
'mootyperid' => 'privacy:metadata:mootyper_attempts:mootyperid',
'userid' => 'privacy:metadata:mootyper_attempts:userid',
@@ -115,7 +115,7 @@ private static function get_modid() {
* @param int $userid The user to search for.
* @return contextlist $contextlist The contextlist containing the list of contexts used in this plugin.
*/
public static function get_contexts_for_userid(int $userid) {
public static function get_contexts_for_userid(int $userid) : contextlist {
$contextlist = new contextlist();
$modid = self::get_modid();
if (!$modid) {
Thank you for the information. I will work on it as soon as I can.
Just to let you know, I have been having some personal health issues and have not had much time to work on this. I had made the needed code changes back when David first opened this issue, but had not had the time to create a new release due to other things I was working on. I will try to make a release within the next week.
The fix for this was included in the MooTyper v4.1.2 version so closing this issue.
When a user requests to export the data with the data privacy api, an adhoc task is created. This task fails due to this error:
Fatal error: Declaration of mod_mootyper\privacy\provider::get_metadata(core_privacy\local\metadata\collection $collection) must be compatible with core_privacy\local\metadata\provider::get_metadata(core_privacy\local\metadata\collection $collection): core_privacy\local\metadata\collection in /mod/mootyper/classes/privacy/provider.php on line 65
This breaks the whole data export for users and thus any platform using this module is not GDPR compliant anymore.