allow selection of work items by state via type option
This commit is contained in:
parent
39e828c4e1
commit
0528718523
1 changed files with 2 additions and 1 deletions
|
@ -253,7 +253,8 @@ class BaseWorkItemsView(object):
|
|||
tsTo += 3600 * 24 - 1 # include full end date
|
||||
if tsFrom or tsTo:
|
||||
result['timeFromTo'] = (tsFrom, tsTo)
|
||||
state = form.get('wi_state') or self.options.wi_state
|
||||
state = (form.get('wi_state') or
|
||||
self.options.wi_state or self.typeOptions.wi_state)
|
||||
if not state:
|
||||
result['state'] = ['planned', 'accepted', 'running', 'done',
|
||||
'done_x', 'finished', 'delegated', 'moved', 'cancelled']
|
||||
|
|
Loading…
Add table
Reference in a new issue