Commit 7af81af0 authored by Robert Lyon's avatar Robert Lyon Committed by Cecilia Vela Gurovic

Bug 1828135: Remove the pending emails when deleting user

behatnotneeded

Change-Id: I04e7787c9d17418d2a5e80df3035255cb51b6d51
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
(cherry picked from commit dc64aa25)
parent 758ffe5a
......@@ -1595,6 +1595,7 @@ function delete_user($userid) {
delete_records('usr_pendingdeletion', 'usr', $userid); // just in case
delete_records('usr_agreement', 'usr', $userid);
delete_records('existingcopy', 'usr', $userid);
delete_records('artefact_internal_profile_email', 'owner', $userid);
if (is_plugin_active('framework', 'module')) {
delete_records('framework_assessment_feedback', 'usr', $userid);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment