-
Bug
-
Resolution: Fixed
-
Minor
-
3.6.4, 3.7.1
-
MOODLE_36_STABLE, MOODLE_37_STABLE
-
MOODLE_36_STABLE, MOODLE_37_STABLE
-
- Run vendor/bin/phpunit admin/tool/usertours/tests/privacy_provider_test.php
- Confirm testcase passes
Deleting a user tour does not delete associated user preferences. This leads to the following exception being emailed to the user:
From: Do not reply to this email (via Moodle) <noreply@city.ac.uk>
Sent: 24 July 2019 09:46
To: ###
Subject: Exception occurred while processing privacy data
Exception occurred while calling tool_usertours\privacy\provider::export_user_preferences.
This means that plugin tool_usertours did not complete the processing of data. The following exception information may be passed on to the plugin developer:
Can't find data record in database table tool_usertours_tours.
#0 /lib/dml/moodle_database.php(1522): moodle_database->get_record_select('tool_usertours_...', 'WHERE id = ?', Array, '', 2) #1 /admin/tool/usertours/classes/tour.php(148): moodle_database->get_record('tool_usertours_...', Array, '', 2) #2 /admin/tool/usertours/classes/tour.php(123): tool_usertours\tour->fetch('4') #3 /admin/tool/usertours/classes/privacy/provider.php(81): tool_usertours\tour::instance('4') #4 /lib/moodlelib.php(7916): tool_usertours\privacy\provider::export_user_preferences(142732) #5 /privacy/classes/manager.php(578): component_class_callback('tool_usertours
...', 'export_user_pre...', Array) #6 /privacy/classes/manager.php(611): core_privacy\manager::component_class_callback('tool_usertours', 'core_privacy
lo...', 'export_user_pre...', Array) #7 /privacy/classes/manager.php(361): core_privacy\manager->handled_component_class_callback('tool_usertours', 'core_privacy
lo...', 'export_user_pre...', Array) #8 /admin/tool/dataprivacy/classes/task/process_data_request_task.php(113): core_privacy\manager->export_user_data(Object(core_privacy\local\request\contextlist_collection)) #9 /lib/cronlib.php(185): tool_dataprivacy\task\process_data_request_task->execute() #10 /lib/cronlib.php(74): cron_run_inner_adhoc_task(Object(tool_dataprivacy\task\process_data_request_task)) #11 /admin/cli/cron.php(61): cron_run() #12 {main}