From 4e487632b13ce07641ad0e13f0f25c21f829889d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com>
Date: Tue, 19 Jul 2005 18:58:52 +0000
Subject: [PATCH] Fix the BadRequest error that happened when clicking
 (un)checkAll on an empty listbox.

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

diff --git a/product/ERP5Form/SelectionTool.py b/product/ERP5Form/SelectionTool.py
index cfe2ffc336..9854cb9ec0 100755
--- a/product/ERP5Form/SelectionTool.py
+++ b/product/ERP5Form/SelectionTool.py
@@ -27,7 +27,7 @@
 ##############################################################################
 
 """\
-ERP portal_categories tool.
+ERP portal_selection tool.
 """
 
 from OFS.SimpleItem import SimpleItem
@@ -218,7 +218,7 @@ class SelectionTool( UniqueObject, SimpleItem ):
       return []
 
     security.declareProtected(ERP5Permissions.View, 'checkAll')
-    def checkAll(self, selection_name, listbox_uid, REQUEST=None):
+    def checkAll(self, selection_name, listbox_uid=[], REQUEST=None):
       """
         Sets the selection params for a given selection_name
       """
@@ -241,7 +241,7 @@ class SelectionTool( UniqueObject, SimpleItem ):
         return request.RESPONSE.redirect(referer)
 
     security.declareProtected(ERP5Permissions.View, 'uncheckAll')
-    def uncheckAll(self, selection_name, listbox_uid, REQUEST=None):
+    def uncheckAll(self, selection_name, listbox_uid=[], REQUEST=None):
       """
         Sets the selection params for a given selection_name
       """
-- 
2.30.9