Code

display of saved queries is now performed correctly
authorkedder <kedder@57a73879-2fb5-44c3-a270-3262357dd7e2>
Thu, 9 Jan 2003 14:41:20 +0000 (14:41 +0000)
committerkedder <kedder@57a73879-2fb5-44c3-a270-3262357dd7e2>
Thu, 9 Jan 2003 14:41:20 +0000 (14:41 +0000)
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1428 57a73879-2fb5-44c3-a270-3262357dd7e2

CHANGES.txt
roundup/cgi/templating.py

index 03a906413e5ea6612288259b30400325eec660fb..7a13ff753836be69408b510804bcc1f35341f540 100644 (file)
@@ -17,6 +17,7 @@ are given with the most recent entry first.
 - fixed searching on date / interval fields (sf bug 658157)
 - fixed form elements names in search form to allow grouping and sorting 
   on "creation" field
+- display of saved queries is now performed correctly
 
 2002-12-11 0.5.3
 - added mention of how to give users multiple Roles
index 7e6f36ea1cd9025f71461c49a2a653a8e95badb7..d8ed0fc39f64cfbcf0a280fde168a7a2656feff1 100644 (file)
@@ -1459,7 +1459,10 @@ env: %(env)s
             l.append(s%(':filter', ','.join(self.filter)))
         if filterspec:
             for k,v in self.filterspec.items():
-                l.append(s%(k, ','.join(v)))
+                if type(v) == type([]):
+                    l.append(s%(k, ','.join(v)))
+                else:
+                    l.append(s%(k, v))
         if self.search_text:
             l.append(s%(':search_text', self.search_text))
         l.append(s%(':pagesize', self.pagesize))
@@ -1487,7 +1490,10 @@ env: %(env)s
             l.append(':filter=%s'%(','.join(self.filter)))
         for k,v in self.filterspec.items():
             if not args.has_key(k):
-                l.append('%s=%s'%(k, ','.join(v)))
+                if type(v) == type([]):
+                    l.append('%s=%s'%(k, ','.join(v)))
+                else:
+                    l.append('%s=%s'%(k, v))
         if self.search_text and not args.has_key(':search_text'):
             l.append(':search_text=%s'%self.search_text)
         if not args.has_key(':pagesize'):