Code

Robustify SearchAction.fakeFilterVars
authorstefan <stefan@57a73879-2fb5-44c3-a270-3262357dd7e2>
Mon, 16 Feb 2009 17:54:23 +0000 (17:54 +0000)
committerstefan <stefan@57a73879-2fb5-44c3-a270-3262357dd7e2>
Mon, 16 Feb 2009 17:54:23 +0000 (17:54 +0000)
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/roundup/trunk@4129 57a73879-2fb5-44c3-a270-3262357dd7e2

roundup/cgi/actions.py

index 136fb995eae523d8ddd398465249eab8547dd248..e8d69ac251a464e05024c5a4b8cd6d1369a4a5aa 100755 (executable)
@@ -234,7 +234,7 @@ class SearchAction(Action):
                 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: