From 68ecf587b7a1ef3614007df8fc2b23a3d63c8849 Mon Sep 17 00:00:00 2001
From: Vincent Pelletier <vincent@nexedi.com>
Date: Tue, 21 Apr 2009 14:40:50 +0000
Subject: [PATCH] Always remove '-C' parameter.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26565 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5Form/Selection.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/product/ERP5Form/Selection.py b/product/ERP5Form/Selection.py
index 6e4e2b65e7..48e237e4cb 100644
--- a/product/ERP5Form/Selection.py
+++ b/product/ERP5Form/Selection.py
@@ -189,6 +189,8 @@ class Selection(Acquisition.Implicit, Traversable, Persistent):
         #LOG("Selection", 0, str(method))
         #LOG('Selection', 0, "self.invert_mode = %s" % repr(self.invert_mode))
         kw = self.params.copy()
+        # Always remove '-C'-named parameter.
+        kw.pop('-C', None)
         if self.invert_mode is not 0:
           kw['uid'] = self.uids
         if method is None or isinstance(method, str):
-- 
2.30.9