]> git.decadent.org.uk Git - maypole.git/blobdiff - templates/factory/pager
Change author acknowledge to explicit copyright statement.
[maypole.git] / templates / factory / pager
index 558da84d680fadb80e0663d94465e2fa069f83d0..6aed9c21c9cf024d31b0d37bdb1bc678069f6d14 100644 (file)
@@ -26,10 +26,14 @@ IF pager AND pager.first_page != pager.last_page;
           ELSE;
             SET label = num;
             SET args = "?page=" _ num;
+           SET args = args _ "&order=" _ request.params.order
+             IF request.params.order;
+           SET args = args _ "&o2=desc"
+             IF request.params.o2 == "desc";
             SET action = "list";
             FOR col = classmetadata.columns.list;
-              IF request.query.$col;
-                SET args = args _ "&" _ col _ "=" _ request.query.$col;
+              IF request.params.$col;
+                SET args = args _ "&" _ col _ "=" _ request.params.$col;
                 SET action = "search";
               END;
             END;