summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xprocess_bug.cgi10
-rw-r--r--template/en/default/bug/navigate.html.tmpl10
2 files changed, 10 insertions, 10 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];
diff --git a/template/en/default/bug/navigate.html.tmpl b/template/en/default/bug/navigate.html.tmpl
index 9592301f7..4a3d063af 100644
--- a/template/en/default/bug/navigate.html.tmpl
+++ b/template/en/default/bug/navigate.html.tmpl
@@ -43,10 +43,12 @@
([% this_bug_idx + 1 %] of [% last_bug_list.size %])
[% END %]
-[% IF this_bug_idx != -1 %]
- <a href="show_bug.cgi?id=[% last_bug_list.first FILTER url_quote %]">First</a>
- <a href="show_bug.cgi?id=[% last_bug_list.last FILTER url_quote %]">Last</a>
-[% END %]
+ [% IF this_bug_idx != -1 %]
+ <a href="show_bug.cgi?id=
+ [%- last_bug_list.first FILTER url_quote %]">First</a>
+ <a href="show_bug.cgi?id=
+ [%- last_bug_list.last FILTER url_quote %]">Last</a>
+ [% END %]
[% IF bug.bug_id %]
[% IF this_bug_idx != -1 %]