Commit b300cb1d authored by Ivan Tyagov's avatar Ivan Tyagov

Avoid search without specifying search words.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@43165 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f6ea9604
......@@ -61,8 +61,9 @@ defaut_dict = {\'mode\': \'ext2\', # full text search mode\n
}\n
for key, item in defaut_dict.items():\n
operator = \';%s\' %key\n
if operator not in value:\n
if operator not in value and value not in (\'\', None):\n
value = \'%s%s=%s\' %(value, operator, item)\n
\n
query = Query(**{\'sphinxse_query\': value})\n
return query\n
</string> </value>
......
21
\ No newline at end of file
22
\ No newline at end of file
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