From: Simon Flack Date: Thu, 21 Oct 2004 13:30:55 +0000 (+0000) Subject: Fixed ordering with pager X-Git-Tag: 2.10~112 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=40e991eb37df35834e44132f35c42e0dcaf7d66b;p=maypole.git Fixed ordering with pager git-svn-id: http://svn.maypole.perl.org/Maypole/trunk@250 48953598-375a-da11-a14b-00016c27c3ee --- diff --git a/templates/factory/pager b/templates/factory/pager index 558da84..bb78138 100644 --- a/templates/factory/pager +++ b/templates/factory/pager @@ -26,6 +26,10 @@ IF pager AND pager.first_page != pager.last_page; ELSE; SET label = num; SET args = "?page=" _ num; + SET args = args _ "&order=" _ request.query.order + IF request.query.order; + SET args = args _ "&o2=desc" + IF request.query.o2 == "desc"; SET action = "list"; FOR col = classmetadata.columns.list; IF request.query.$col;