"storage/maria/ma_rt_split.c" did not exist on "0f6eb9654dae4d5c0a62e115f0021893ef6351ec"
Commit d5f45b91 authored by Vincent Pelletier's avatar Vincent Pelletier

Fix unneeded leading ':' in search text expressions rendered from a DefaultKey...

Fix unneeded leading ':' in search text expressions rendered from a DefaultKey Query when column is ''.


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