summaryrefslogtreecommitdiffstats
path: root/process_bug.cgi
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2009-08-12 03:45:33 +0200
committermkanat%bugzilla.org <>2009-08-12 03:45:33 +0200
commit7035153b2ed0b16e8ba0c859636b5839f70f6fd2 (patch)
treea46580fa6a0bc214fec93efa49eb1afcb0e1385d /process_bug.cgi
parentbf68d5918c2eea9b123ee36c7f3541cc1154e060 (diff)
downloadbugzilla-7035153b2ed0b16e8ba0c859636b5839f70f6fd2.tar.gz
bugzilla-7035153b2ed0b16e8ba0c859636b5839f70f6fd2.tar.xz
Do requested checkin fixes for bug 509108.
Diffstat (limited to 'process_bug.cgi')
-rwxr-xr-xprocess_bug.cgi10
1 files changed, 4 insertions, 6 deletions
diff --git a/process_bug.cgi b/process_bug.cgi
index c46dd6fb5..c0ee54938 100755
--- a/process_bug.cgi
+++ b/process_bug.cgi
@@ -198,17 +198,15 @@ else {
$vars->{'title_tag'} = "bug_processed";
-# Set up the vars for navigational <link> elements
-my @bug_list;
-if ($cgi->cookie("BUGLIST")) {
- @bug_list = split(/:/, $cgi->cookie("BUGLIST"));
-}
-
my ($action, $next_bug);
if (defined $cgi->param('id')) {
$action = Bugzilla->user->settings->{'post_bug_submit_action'}->{'value'};
if ($action eq 'next_bug') {
+ my @bug_list;
+ if ($cgi->cookie("BUGLIST")) {
+ @bug_list = split(/:/, $cgi->cookie("BUGLIST"));
+ }
my $cur = lsearch(\@bug_list, $cgi->param('id'));
if ($cur >= 0 && $cur < $#bug_list) {
$next_bug = $bug_list[$cur + 1];