diff roundup/cgi/templating.py @ 3610:1dbaa664be28

sorting of entries in classhelp popup [SF#1449000]
author Richard Jones <richard@users.sourceforge.net>
date Thu, 27 Apr 2006 05:08:04 +0000
parents b5b6a6f7743a
children 53987aa153d2
line wrap: on
line diff
--- a/roundup/cgi/templating.py	Thu Apr 27 04:59:37 2006 +0000
+++ b/roundup/cgi/templating.py	Thu Apr 27 05:08:04 2006 +0000
@@ -663,11 +663,10 @@
             properties = ','.join(properties)
         if sort is None:
             if 'username' in properties.split( ',' ):
-                sort = '&amp;@sort=username'
+                sort = 'username'
             else:
-                sort = ''
-        else:
-            sort = '&amp;@sort=' + sort
+                sort = find_sort_key(self._klass)
+        sort = '&amp;@sort=' + sort
         if property:
             property = '&amp;property=%s'%property
         if form:

Roundup Issue Tracker: http://roundup-tracker.org/