summaryrefslogtreecommitdiffstats
path: root/editusers.cgi
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2005-10-18 06:28:16 +0200
committerlpsolit%gmail.com <>2005-10-18 06:28:16 +0200
commit97916f9a31574776b13b975ee87f0483cd65fa9b (patch)
tree4eef5c06cee6c6d62143aeee83b174b5f8029ee7 /editusers.cgi
parent1f9c83ae81c5c81d005fa0d9a428e23ea5126576 (diff)
downloadbugzilla-97916f9a31574776b13b975ee87f0483cd65fa9b.tar.gz
bugzilla-97916f9a31574776b13b975ee87f0483cd65fa9b.tar.xz
Bug 305979: Removing a user account who was requested to set a flag at least once may return wrong information - Patch by Frédéric Buclin <LpSolit@gmail.com> r=wurblzap a=justdave
Diffstat (limited to 'editusers.cgi')
-rwxr-xr-xeditusers.cgi2
1 files changed, 1 insertions, 1 deletions
diff --git a/editusers.cgi b/editusers.cgi
index 049bfabf7..d967123a7 100755
--- a/editusers.cgi
+++ b/editusers.cgi
@@ -428,7 +428,7 @@ if ($action eq 'search') {
'SELECT COUNT(*) FROM bugs_activity WHERE who = ?',
undef, $otherUserID);
$vars->{'flags'}{'requestee'} = $dbh->selectrow_array(
- 'SELECT COUNT(*) FROM flags WHERE requestee_id = ?',
+ 'SELECT COUNT(*) FROM flags WHERE requestee_id = ? AND is_active = 1',
undef, $otherUserID);
$vars->{'flags'}{'setter'} = $dbh->selectrow_array(
'SELECT COUNT(*) FROM flags WHERE setter_id = ?',