Skip to content
Snippets Groups Projects
Commit 4982fc34 authored by Jelle van der Waa's avatar Jelle van der Waa :construction: Committed by Lukas Fleischer
Browse files

Resolve SQL Error when deleting an account


The account deletion code tries to remove user from PackageNotifications
using the wrong column UsersID to identify the user by id. In the
PackagePackageNotifications table the foreign key is called UserID. In
the future ideally this would be unified into UserID for all tables.

Closes: #12
Signed-off-by: default avatarLukas Fleischer <lfleischer@archlinux.org>
parent aca57c5d
No related branches found
No related tags found
No related merge requests found
......@@ -940,7 +940,7 @@ function user_delete($id) {
$fields_delete = array(
array("Sessions", "UsersID"),
array("PackageVotes", "UsersID"),
array("PackageNotifications", "UsersID")
array("PackageNotifications", "UserID")
);
$fields_set_null = array(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment