From d1f5a3b7ef5338cdb5d92bdc338a06929cec29ba Mon Sep 17 00:00:00 2001
From: Jean-Paul Smets <jp@nexedi.com>
Date: Wed, 22 Dec 2004 15:16:45 +0000
Subject: [PATCH] added convertToMixedCase in workflow script ids (generated
 from wf method transitions)

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2094 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5Type/ZopePatch.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/product/ERP5Type/ZopePatch.py b/product/ERP5Type/ZopePatch.py
index 31947d5162..7d27c4b27e 100755
--- a/product/ERP5Type/ZopePatch.py
+++ b/product/ERP5Type/ZopePatch.py
@@ -648,12 +648,13 @@ DCWorkflowDefinition._executeTransition = ERP5DCWorkflowDefinition._executeTrans
 # as well as workflow inheritance. This way, different user actions and dialogs can be specified easliy
 # For now, we split UI transitions and logics transitions so that UI can be different and logics the same
 from Products.DCWorkflow.Transitions import TransitionDefinition
+from Products.ERP5Type.Utils import convertToMixedCase
 
 class ERP5TransitionDefinition (TransitionDefinition):
 
     def getAvailableScriptIds(self):
-        return self.getWorkflow().scripts.keys() +  filter(
-          lambda k: self.getWorkflow().transitions[k].trigger_type == TRIGGER_WORKFLOW_METHOD, self.getWorkflow().transitions.keys())
+        return self.getWorkflow().scripts.keys() +  map(lambda tid: convertToMixedCase(tid), filter(
+          lambda k: self.getWorkflow().transitions[k].trigger_type == TRIGGER_WORKFLOW_METHOD, self.getWorkflow().transitions.keys()))
 
 TransitionDefinition.getAvailableScriptIds = ERP5TransitionDefinition.getAvailableScriptIds
 
-- 
2.30.9