summaryrefslogtreecommitdiffstats
path: root/bug_form.pl
diff options
context:
space:
mode:
authorbbaetz%student.usyd.edu.au <>2002-04-15 11:19:19 +0200
committerbbaetz%student.usyd.edu.au <>2002-04-15 11:19:19 +0200
commit61d65a657abb4c88c725c04db8f3c6b9cd43ef59 (patch)
treef4cac69af92c3bb14cd6f10bc6bc328996f97507 /bug_form.pl
parent7e50e09d81f366d2fc0c7e692d5f8dd8a49be18d (diff)
downloadbugzilla-61d65a657abb4c88c725c04db8f3c6b9cd43ef59.tar.gz
bugzilla-61d65a657abb4c88c725c04db8f3c6b9cd43ef59.tar.xz
Bug 136751 - warnings with show_bug.cgi
r=justdave x2
Diffstat (limited to 'bug_form.pl')
-rw-r--r--bug_form.pl10
1 files changed, 5 insertions, 5 deletions
diff --git a/bug_form.pl b/bug_form.pl
index e51107bfb..792e816ad 100644
--- a/bug_form.pl
+++ b/bug_form.pl
@@ -201,6 +201,7 @@ sub show_bug {
$bug{'blocked'} = \@list2;
# Groups
+ my @groups;
if ($::usergroupset ne '0' || $bug{'groupset'} ne '0') {
my $bug_groupset = $bug{'groupset'};
@@ -213,7 +214,6 @@ sub show_bug {
"AND ((isactive = 1 AND (bit & $::usergroupset != 0)) OR
(bit & $bug_groupset != 0))");
- my @groups;
$user{'inallgroups'} = 1;
while (MoreSQLData()) {
@@ -254,9 +254,8 @@ sub show_bug {
($bug{'reporter_accessible'},
$bug{'cclist_accessible'}) = FetchSQLData();
}
-
- $vars->{'groups'} = \@groups;
}
+ $vars->{'groups'} = \@groups;
my $movers = Param("movers");
$user{'canmove'} = Param("move-enabled")
@@ -296,11 +295,12 @@ sub show_bug {
$bug{'cc'} = \@cc if $cc[0];
# Next bug in list (if there is one)
+ my @bug_list;
if ($::COOKIE{"BUGLIST"} && $id)
{
- my @bug_list = split(/:/, $::COOKIE{"BUGLIST"});
- $vars->{'bug_list'} = \@bug_list;
+ @bug_list = split(/:/, $::COOKIE{"BUGLIST"});
}
+ $vars->{'bug_list'} = \@bug_list;
$bug{'comments'} = GetComments($bug{'bug_id'});