-
Bug
-
Resolution: Fixed
-
Minor
-
2.5.4, 2.6.1, 2.7
-
MOODLE_25_STABLE, MOODLE_26_STABLE, MOODLE_27_STABLE
-
MOODLE_25_STABLE, MOODLE_26_STABLE
-
master_
MDL-43797 -
Removal of all block instances on user pages is being handled by delete_context(CONTEXT_USER, $user->id) when user is deleted. However, if a user had a customised "My Home" page, a record will still remains in database.
It looks like all we need to do is add:
$DB->delete_records('my_pages', array('userid' => $user->id, 'private' => 1));
to delete_user() method. We will submit proposed fix in a bit.