From: Ivan Kohler Date: Fri, 15 Nov 2013 23:14:49 +0000 (-0800) Subject: fix sorting by a column advancing a page, RT#25740 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=f2db9bfd9d1a20a494899e8eb8b0d7795a3189ed fix sorting by a column advancing a page, RT#25740 --- diff --git a/httemplate/elements/pager.html b/httemplate/elements/pager.html index a53300f53..d360e6478 100644 --- a/httemplate/elements/pager.html +++ b/httemplate/elements/pager.html @@ -1,13 +1,8 @@ -% my %opt = @_; -% my $pager = ''; -% % if ( $opt{'total'} != $opt{'num_rows'} && $opt{'maxrecords'} ) { % % unless ( $opt{'offset'} == 0 ) { % $cgi->param('offset', $opt{'offset'} - $opt{'maxrecords'}); - Previous - % } % % my $page = 0; @@ -47,9 +42,17 @@ % % unless ( $opt{'offset'} + $opt{'maxrecords'} > $opt{'total'} ) { % $cgi->param('offset', $opt{'offset'} + $opt{'maxrecords'}); - Next -% % } % +% $cgi->param('offset', $orig_offset); #so future $self_url invocations don't advance a page +% % } +<%init> + +my %opt = @_; + +my $orig_offset = $opt{'offset'}; + + +