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(
|
running = IWorkItems(getParent(self)).query(
|
||||||
party=userName, state='running')
|
party=userName, state='running')
|
||||||
for wi in running:
|
for wi in running:
|
||||||
if wi.workItemType in 'work':
|
if wi.workItemType in (None, 'work'):
|
||||||
wi.doAction('work', userName,
|
wi.doAction('work', userName,
|
||||||
end=(kw.get('start') or getTimeStamp()))
|
end=(kw.get('start') or getTimeStamp()))
|
||||||
# standard creation of new work item:
|
# standard creation of new work item:
|
||||||
|
|
Loading…
Add table
Reference in a new issue