From 9042b58f0ceb4896bd99542a3f59a368158bbccc Mon Sep 17 00:00:00 2001 From: "bbaetz%cs.mcgill.ca" <> Date: Tue, 23 Oct 2001 22:44:50 +0000 Subject: Bug 97469 - Assignee/QA/Reporter/CC don't get email on restricted bugs. Also fixes seeing bugs in the buglist (bug 95024), dependancy lists, tooltips, duplicates, and everywhere else I could see which checked group bugs.groupset == 0. Also fxed bug 101560, by clearing BASH_ENV r=myk,justdave --- buglist.cgi | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'buglist.cgi') diff --git a/buglist.cgi b/buglist.cgi index c22475837..120234471 100755 --- a/buglist.cgi +++ b/buglist.cgi @@ -37,6 +37,7 @@ sub sillyness { $zz = $::db_name; $zz = $::defaultqueryname; $zz = $::unconfirmedstate; + $zz = $::userid; $zz = @::components; $zz = @::default_column_list; $zz = @::legal_keywords; @@ -162,9 +163,7 @@ sub GenerateSQL { "LEFT JOIN profiles map_qa_contact ON bugs.qa_contact = map_qa_contact.userid")); unshift(@wherepart, ("bugs.assigned_to = map_assigned_to.userid", - "bugs.reporter = map_reporter.userid", - "bugs.groupset & $::usergroupset = bugs.groupset")); - + "bugs.reporter = map_reporter.userid")); my $minvotes; if (defined $F{'votes'}) { @@ -805,10 +804,14 @@ sub GenerateSQL { $suppseen{$str} = 1; } } + my $query = ("SELECT " . join(', ', @fields) . " FROM $suppstring" . " WHERE " . join(' AND ', (@wherepart, @andlist)) . " GROUP BY bugs.bug_id"); + + $query = SelectVisible($query, $::userid, $::usergroupset); + if ($debug) { print "

" . value_quote($query) . "

\n"; exit(); @@ -1069,8 +1072,6 @@ ReconnectToShadowDatabase(); my $query = GenerateSQL(\@fields, undef, undef, $::buffer); - - if ($::COOKIE{'LASTORDER'}) { if ((!$::FORM{'order'}) || $::FORM{'order'} =~ /^reuse/i) { $::FORM{'order'} = url_decode($::COOKIE{'LASTORDER'}); @@ -1132,6 +1133,7 @@ if ($::FORM{'debug'} && $serverpush) { if (Param('expectbigqueries')) { SendSQL("set option SQL_BIG_TABLES=1"); } + SendSQL($query); my $count = 0; -- cgit v1.2.3-24-g4f1b