diff roundup/cgi/actions.py @ 4037:0b89c94a2387

Robustify SearchAction.fakeFilterVars
author Stefan Seefeld <stefan@seefeld.name>
date Mon, 16 Feb 2009 17:54:23 +0000
parents b140d76c1cc8
children bbab97f8ffb2
line wrap: on
line diff
--- a/roundup/cgi/actions.py	Thu Feb 12 16:21:46 2009 +0000
+++ b/roundup/cgi/actions.py	Mon Feb 16 17:54:23 2009 +0000
@@ -234,7 +234,7 @@
                 if isinstance(prop, hyperdb.String):
                     v = self.form[key].value
                     l = token.token_split(v)
-                    if len(l) > 1 or l[0] != v:
+                    if len(l) != 1 or l[0] != v:
                         self.form.value.remove(self.form[key])
                         # replace the single value with the split list
                         for v in l:

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