summaryrefslogtreecommitdiffstats
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
parentbf68d5918c2eea9b123ee36c7f3541cc1154e060 (diff)
downloadbugzilla-7035153b2ed0b16e8ba0c859636b5839f70f6fd2.tar.gz
bugzilla-7035153b2ed0b16e8ba0c859636b5839f70f6fd2.tar.xz
Do requested checkin fixes for bug 509108.
-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 %]