summaryrefslogtreecommitdiffstats
path: root/editusers.cgi
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2008-11-22 04:53:13 +0100
committerlpsolit%gmail.com <>2008-11-22 04:53:13 +0100
commit8132a036b5b358dc1377b21eaf82246c35b4ea5f (patch)
tree4c961aa76b6f90aaca4b559d5788cdddc737f6bf /editusers.cgi
parentc72d05686971da020a4aee3b8c9961be69b8d03d (diff)
downloadbugzilla-8132a036b5b358dc1377b21eaf82246c35b4ea5f.tar.gz
bugzilla-8132a036b5b358dc1377b21eaf82246c35b4ea5f.tar.xz
Bug 453681: Do not display the "Yes, delete" button if deleting a user account would cause FK constraint errors - Patch by Frédéric Buclin <LpSolit@gmail.com> r=wurblzap a=LpSolit
Diffstat (limited to 'editusers.cgi')
-rwxr-xr-xeditusers.cgi9
1 files changed, 9 insertions, 0 deletions
diff --git a/editusers.cgi b/editusers.cgi
index ea477a372..23adb6eb7 100755
--- a/editusers.cgi
+++ b/editusers.cgi
@@ -358,6 +358,9 @@ if ($action eq 'search') {
$vars->{'otheruser'} = $otherUser;
# Find other cross references.
+ $vars->{'attachments'} = $dbh->selectrow_array(
+ 'SELECT COUNT(*) FROM attachments WHERE submitter_id = ?',
+ undef, $otherUserID);
$vars->{'assignee_or_qa'} = $dbh->selectrow_array(
qq{SELECT COUNT(*)
FROM bugs
@@ -372,6 +375,9 @@ if ($action eq 'search') {
$vars->{'bugs_activity'} = $dbh->selectrow_array(
'SELECT COUNT(*) FROM bugs_activity WHERE who = ?',
undef, $otherUserID);
+ $vars->{'component_cc'} = $dbh->selectrow_array(
+ 'SELECT COUNT(*) FROM component_cc WHERE user_id = ?',
+ undef, $otherUserID);
$vars->{'email_setting'} = $dbh->selectrow_array(
'SELECT COUNT(*) FROM email_setting WHERE user_id = ?',
undef, $otherUserID);
@@ -402,6 +408,9 @@ if ($action eq 'search') {
$vars->{'profiles_activity'} = $dbh->selectrow_array(
'SELECT COUNT(*) FROM profiles_activity WHERE who = ? AND userid != ?',
undef, ($otherUserID, $otherUserID));
+ $vars->{'quips'} = $dbh->selectrow_array(
+ 'SELECT COUNT(*) FROM quips WHERE userid = ?',
+ undef, $otherUserID);
$vars->{'series'} = $dbh->selectrow_array(
'SELECT COUNT(*) FROM series WHERE creator = ?',
undef, $otherUserID);