Commit e52fed5b authored by Vincent Pelletier's avatar Vincent Pelletier

Filter criterion ids before checking for emptiness.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@15453 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ab177524
...@@ -169,8 +169,8 @@ def groupWorklistListByCondition(worklist_dict, acceptable_key_dict, getSecurity ...@@ -169,8 +169,8 @@ def groupWorklistListByCondition(worklist_dict, acceptable_key_dict, getSecurity
'%s filters on variable %s which is not available in '\ '%s filters on variable %s which is not available in '\
'catalog. Its value will not be checked.' % \ 'catalog. Its value will not be checked.' % \
(worklist_id, workflow_id, criterion_id)) (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.sort()
worklist_set_dict_key = tuple(worklist_set_dict_key) worklist_set_dict_key = tuple(worklist_set_dict_key)
if worklist_set_dict_key not in worklist_set_dict: if worklist_set_dict_key not in worklist_set_dict:
......
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