From e52fed5ba237932c296a9f32410f8e6b5326817c Mon Sep 17 00:00:00 2001 From: Vincent Pelletier <vincent@nexedi.com> Date: Fri, 3 Aug 2007 13:02:49 +0000 Subject: [PATCH] Filter criterion ids before checking for emptiness. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@15453 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5Type/patches/WorkflowTool.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/product/ERP5Type/patches/WorkflowTool.py b/product/ERP5Type/patches/WorkflowTool.py index 78b60d090e..699687ce84 100644 --- a/product/ERP5Type/patches/WorkflowTool.py +++ b/product/ERP5Type/patches/WorkflowTool.py @@ -169,8 +169,8 @@ def groupWorklistListByCondition(worklist_dict, acceptable_key_dict, getSecurity '%s filters on variable %s which is not available in '\ 'catalog. Its value will not be checked.' % \ (worklist_id, workflow_id, criterion_id)) - if len(valid_criterion_dict): - worklist_set_dict_key = [x for x in valid_criterion_dict.keys() if x != WORKLIST_METADATA_KEY] + worklist_set_dict_key = [x for x in valid_criterion_dict.keys() if x != WORKLIST_METADATA_KEY] + if len(worklist_set_dict_key): worklist_set_dict_key.sort() worklist_set_dict_key = tuple(worklist_set_dict_key) if worklist_set_dict_key not in worklist_set_dict: -- 2.30.9