diff options
author | bbaetz%cs.mcgill.ca <> | 2001-10-23 22:44:50 +0000 |
---|---|---|
committer | bbaetz%cs.mcgill.ca <> | 2001-10-23 22:44:50 +0000 |
commit | 9042b58f0ceb4896bd99542a3f59a368158bbccc (patch) | |
tree | dfa9027e25cd0456fad9697bc4038a12daae63a6 /duplicates.cgi | |
parent | Bug 63249 - The Bug Counts report was running very slowly due to unneeded fie... (diff) | |
download | bugzilla-9042b58f0ceb4896bd99542a3f59a368158bbccc.tar.gz bugzilla-9042b58f0ceb4896bd99542a3f59a368158bbccc.tar.bz2 bugzilla-9042b58f0ceb4896bd99542a3f59a368158bbccc.zip |
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
Diffstat (limited to 'duplicates.cgi')
-rwxr-xr-x | duplicates.cgi | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/duplicates.cgi b/duplicates.cgi index d1640cbf6..cd2d14c2a 100755 --- a/duplicates.cgi +++ b/duplicates.cgi @@ -33,6 +33,12 @@ require "CGI.pl"; ConnectToDatabase(1); GetVersionTable(); +quietly_check_login(); + +# Silly used-once warnings +$::userid = $::userid; +$::usergroupset = $::usergroupset; + my %dbmcount; my %count; my $dobefore = 0; @@ -195,10 +201,10 @@ $i = 0; foreach (@sortedcount) { my $id = $_; - SendSQL("SELECT component, bug_severity, op_sys, target_milestone, short_desc, groupset, bug_status, resolution" . - " FROM bugs WHERE bug_id = $id"); - my ($component, $severity, $op_sys, $milestone, $summary, $groupset, $bug_status, $resolution) = FetchSQLData(); - next unless $groupset == 0; + SendSQL(SelectVisible("SELECT component, bug_severity, op_sys, target_milestone, short_desc, bug_status, resolution" . + " FROM bugs WHERE bugs.bug_id = $id", $::userid, $::usergroupset)); + next unless MoreSQLData(); + my ($component, $severity, $op_sys, $milestone, $summary, $bug_status, $resolution) = FetchSQLData(); $summary = html_quote($summary); # Show all bugs except those CLOSED _OR_ VERIFIED but not INVALID or WONTFIX. |