summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorMax Kanat-Alexander <mkanat@bugzilla.org>2010-02-02 00:54:14 +0100
committerMax Kanat-Alexander <mkanat@bugzilla.org>2010-02-02 00:54:14 +0100
commitdec46c31056996458be8eff8bd7cb56b3466e3b3 (patch)
treef0a4f275dca1cbf0ffb0e4ca794b6080ab3aba1e /Bugzilla
parentfde6d4aa81a56418ae5cdfd16a6b917534d66bed (diff)
downloadbugzilla-dec46c31056996458be8eff8bd7cb56b3466e3b3.tar.gz
bugzilla-dec46c31056996458be8eff8bd7cb56b3466e3b3.tar.xz
Bug 543459: Speed up the new duplicates.cgi
r=LpSolit, a=LpSolit
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/User.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/Bugzilla/User.pm b/Bugzilla/User.pm
index 06c6be5cb..d1e4694ec 100644
--- a/Bugzilla/User.pm
+++ b/Bugzilla/User.pm
@@ -652,12 +652,13 @@ sub visible_bugs {
}
$sth->execute(@check_ids);
+ my $use_qa_contact = Bugzilla->params->{'useqacontact'};
while (my $row = $sth->fetchrow_arrayref) {
my ($bug_id, $reporter, $owner, $qacontact, $reporter_access,
$cclist_access, $isoncclist, $missinggroup) = @$row;
$visible_cache->{$bug_id} ||=
((($reporter == $user_id) && $reporter_access)
- || (Bugzilla->params->{'useqacontact'}
+ || ($use_qa_contact
&& $qacontact && ($qacontact == $user_id))
|| ($owner == $user_id)
|| ($isoncclist && $cclist_access)