show 'closed' state by default in listings
This commit is contained in:
parent
b59c238045
commit
1ba43979a8
1 changed files with 4 additions and 6 deletions
|
@ -1,5 +1,5 @@
|
||||||
#
|
#
|
||||||
# Copyright (c) 2011 Helmut Merz helmutm@cy55.de
|
# Copyright (c) 2012 Helmut Merz helmutm@cy55.de
|
||||||
#
|
#
|
||||||
# This program is free software; you can redistribute it and/or modify
|
# This program is free software; you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License as published by
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
@ -18,8 +18,6 @@
|
||||||
|
|
||||||
"""
|
"""
|
||||||
View class(es) for work items.
|
View class(es) for work items.
|
||||||
|
|
||||||
$Id$
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from datetime import date
|
from datetime import date
|
||||||
|
@ -235,9 +233,9 @@ class BaseWorkItemsView(object):
|
||||||
result['timeFromTo'] = (tsFrom, 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
|
||||||
if not state:
|
if not state:
|
||||||
result['state'] = ['planned', 'accepted', 'running', 'done', 'done_x',
|
result['state'] = ['planned', 'accepted', 'running', 'done',
|
||||||
'finished', 'delegated', 'moved',
|
'done_x', 'finished', 'delegated', 'moved',
|
||||||
'cancelled']
|
'closed', 'cancelled']
|
||||||
elif state != 'all':
|
elif state != 'all':
|
||||||
result['state'] = state
|
result['state'] = state
|
||||||
return result
|
return result
|
||||||
|
|
Loading…
Add table
Reference in a new issue