setChainForPortalTypes doesn't allow to set 'Default' as workflow chain
Bug #161705 reported by
Encolpe Degoute
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zope CMF buildout |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Here comes the patch for CMF 1.6:
Index: WorkflowTool.py
=======
--- WorkflowTool.py (révision 74102)
+++ WorkflowTool.py (copie de travail)
@@ -464,7 +464,10 @@
if isinstance(chain, basestring):
- chain = [ wf.strip() for wf in chain.split(',') if wf.strip() ]
+ if chain == '(Default)':
+ chain = None
+ else:
+ chain = [ wf.strip() for wf in chain.split(',') if wf.strip() ]
ti_ids = [ t.getId() for t in self._listTypeI
To post a comment you must log in.
Status: Pending => Resolved
Thanks for the patch. This issue duplicates #475:
http:// www.zope. org/Collectors/ CMF/475
which is assigned to Sidnei already, so I am resolving here,
with a note there to look at your patch.