From fb404878269ac57b9eac6bd84e7fee12bd922803 Mon Sep 17 00:00:00 2001
From: Tatuya Kamada <tatuya@nexedi.com>
Date: Thu, 2 Jul 2009 08:20:03 +0000
Subject: [PATCH] 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
---
 product/ERP5Form/ListBox.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/product/ERP5Form/ListBox.py b/product/ERP5Form/ListBox.py
index abf713e26c..0577a5acfd 100644
--- a/product/ERP5Form/ListBox.py
+++ b/product/ERP5Form/ListBox.py
@@ -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)
 
-- 
2.30.9