Commit 726d7a41 authored by Vincent Pelletier's avatar Vincent Pelletier

Use _renderValueAsSearchText to render value using operator (adds quotes, etc)...

Use _renderValueAsSearchText to render value using operator (adds quotes, etc) instead of used the value directly.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27682 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f68f1a02
...@@ -59,7 +59,7 @@ class DefaultKey(SearchKey): ...@@ -59,7 +59,7 @@ class DefaultKey(SearchKey):
if operator_text == 'like': if operator_text == 'like':
assert isinstance(value, basestring) assert isinstance(value, basestring)
assert '%' in value assert '%' in value
result = value result = self._renderValueAsSearchText(value, operator)
if len(column): if len(column):
result = '%s:%s' % (column, result) result = '%s:%s' % (column, result)
else: else:
......
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