From 22bf1d7fffe7496c955689ac1ede17eb0e52b48e Mon Sep 17 00:00:00 2001
From: Tatuya Kamada <tatuya@nexedi.com>
Date: Thu, 2 Jul 2009 10:19:32 +0000
Subject: [PATCH] Just revert the commit r27857.

The reason why:
For example, if a parameter is set a None in the 'Default Parameters'
property in a Listbox configuration, the parameter unfortunately discarded.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27868 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 0577a5acfd..abf713e26c 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 == '' or value is None:
+      if value == '':
         kw.pop(key)
     return getattr(self.context, self.method_name)(*args, **kw)
 
-- 
2.30.9