fix check for workitem type
This commit is contained in:
parent
bd3d7a0e2f
commit
93249faf94
1 changed files with 1 additions and 1 deletions
|
@ -305,7 +305,7 @@ class WorkItem(Stateful, Track):
|
|||
running = IWorkItems(getParent(self)).query(
|
||||
party=userName, state='running')
|
||||
for wi in running:
|
||||
if wi.workItemType in 'work':
|
||||
if wi.workItemType in (None, 'work'):
|
||||
wi.doAction('work', userName,
|
||||
end=(kw.get('start') or getTimeStamp()))
|
||||
# standard creation of new work item:
|
||||
|
|
Loading…
Add table
Reference in a new issue