issue 594 fixed, != in grid query

This commit is contained in:
Massimo Di Pierro
2012-01-16 22:29:53 -06:00
parent 0f43651e09
commit 76699b6b8e
3 changed files with 11 additions and 9 deletions
+1 -1
View File
@@ -1292,7 +1292,7 @@ class SQLFORM(FORM):
@staticmethod
def build_query(fields,keywords):
key = keywords.strip()
if key and not ' ' in key:
if key and not ' ' in key and not '"' in key and not "'" in key:
SEARCHABLE_TYPES = ('string','text','list:string')
parts = [field.contains(key) for field in fields if field.type in SEARCHABLE_TYPES]
else: