From 138688526d968ae6629bc2b9e4486ef303d4c766 Mon Sep 17 00:00:00 2001
From: Vincent Pelletier <vincent@nexedi.com>
Date: Fri, 3 Aug 2007 08:05:22 +0000
Subject: [PATCH] Monovalued test must use "==", not "in".

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@15434 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5Type/patches/WorkflowTool.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/product/ERP5Type/patches/WorkflowTool.py b/product/ERP5Type/patches/WorkflowTool.py
index b64bb91a91..5f909f0ee1 100644
--- a/product/ERP5Type/patches/WorkflowTool.py
+++ b/product/ERP5Type/patches/WorkflowTool.py
@@ -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.
-- 
2.30.9