Commit fb404878 authored by Tatuya Kamada's avatar Tatuya Kamada

Discarding None to fix a bug when searching from search dialogs.

It prevent to create unnecessary queries like a 'is NULL'.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27858 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1d5d41de
......@@ -100,7 +100,7 @@ class CatalogMethodWrapper(MethodWrapper):
# It is probably needed at a more generic level (Forms ? Selection ?), or
# even a more specific one (limited to HTML ?)...
for key, value in kw.items():
if value == '':
if value == '' or value is None:
kw.pop(key)
return getattr(self.context, self.method_name)(*args, **kw)
......
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