Commit 97916f9a authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 305979: Removing a user account who was requested to set a flag at least…

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
parent 1f9c83ae
......@@ -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 = ?',
......
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