Commit 13868852 authored by Vincent Pelletier's avatar Vincent Pelletier

Monovalued test must use "==", not "in".


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@15434 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent fe7192ec
......@@ -148,7 +148,7 @@ def groupWorklistListByCondition(worklist_dict, acceptable_key_dict, getSecurity
for worklist_id, worklist_match_dict in worklist.iteritems():
valid_criterion_dict = {}
for criterion_id, criterion_value in worklist_match_dict.iteritems():
if criterion_id in acceptable_key_dict or criterion_id in WORKLIST_METADATA_KEY:
if criterion_id in acceptable_key_dict or criterion_id == WORKLIST_METADATA_KEY:
valid_criterion_dict[criterion_id] = criterion_value
elif criterion_id == SECURITY_PARAMETER_ID:
# Caching is done at this level to be as fast as possible.
......
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