[Erp5-report] r27858 - /erp5/trunk/products/ERP5Form/ListBox.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Jul 2 10:20:08 CEST 2009
Author: tatuya
Date: Thu Jul 2 10:20:03 2009
New Revision: 27858
URL: http://svn.erp5.org?rev=27858&view=rev
Log:
Discarding None to fix a bug when searching from search dialogs.
It prevent to create unnecessary queries like a 'is NULL'.
Modified:
erp5/trunk/products/ERP5Form/ListBox.py
Modified: erp5/trunk/products/ERP5Form/ListBox.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Form/ListBox.py?rev=27858&r1=27857&r2=27858&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Form/ListBox.py [utf8] (original)
+++ erp5/trunk/products/ERP5Form/ListBox.py [utf8] Thu Jul 2 10:20:03 2009
@@ -100,7 +100,7 @@
# 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)
More information about the Erp5-report
mailing list