Commit d6e6781c authored by Jérome Perrin's avatar Jérome Perrin

Workfow action dialog should not fail when listbox is empty


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24654 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 472d1572
......@@ -144,7 +144,11 @@ def getWorkflowActionDocumentList(self, **kw):
"""This returns the list of all documents on which we will pass a workflow
transition.
"""
listbox = kw['listbox']
listbox = kw.get('listbox', None)
if listbox is None:
# if the listbox is empty
return []
selection_name = kw['module_selection_name']
document_list = []
portal = self.getPortalObject()
......
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