Commit 4e487632 authored by Jérome Perrin's avatar Jérome Perrin

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
parent c502770c
......@@ -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
"""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment