X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FElements%2FTabs;fp=rt%2Fshare%2Fhtml%2FElements%2FTabs;h=6eae81d39964e0cef9f9a7798cf003d855376b64;hb=45d35d5739d05e602bc317739485693e0e9ff0b5;hp=a82cdd1bea11633375f59ffcda58bf745e5190d9;hpb=662be3ece2ef8c7f05fcbfaa699d80a6a73ca110;p=freeside.git diff --git a/rt/share/html/Elements/Tabs b/rt/share/html/Elements/Tabs index a82cdd1be..6eae81d39 100755 --- a/rt/share/html/Elements/Tabs +++ b/rt/share/html/Elements/Tabs @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2013 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2014 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -56,7 +56,7 @@ $request_path =~ s!/{2,}!/!g; my $query_string = sub { my %args = @_; my $u = URI->new(); - $u->query_form(%args); + $u->query_form(map { $_ => $args{$_} } sort keys %args); return $u->query; }; @@ -660,8 +660,10 @@ my $build_main_nav = sub { if ( $item_map->{$id}->{next} ) { $search->child( next => title => loc('Next') . ' >', class => "nav", path => "/Ticket/Display.html?id=" . $item_map->{$id}->{next}); - $search->child( last => - title => loc('Last') . ' >>', class => "nav", path => "/Ticket/Display.html?id=" . $item_map->{last}); + if ( $item_map->{last} ) { + $search->child( last => + title => loc('Last') . ' >>', class => "nav", path => "/Ticket/Display.html?id=" . $item_map->{last}); + } } } }