Commit 40273948 authored by Bartek Górny's avatar Bartek Górny

fixed a bug

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@9243 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1fa6ac81
......@@ -1613,7 +1613,7 @@ class Catalog(Folder, Persistent, Acquisition.Implicit, ExtensionClass.Base):
elif key in full_text_search_keys:
# We must add % in the request to simulate the catalog
search_mode = kw.get('search_mode', 'natural').lower()
mode = full_text_search_keys.get(search_mode,'')
mode = full_text_search_modes.get(search_mode,'')
where_expression += ["MATCH %s AGAINST ('%s' %s)" % (key, value, mode)]
else:
where_expression += ["%s = '%s'" % (key, value)]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment