handle missing filters arg when creating a worklist
Change-Id: I98f2180733adb97b277baec1f3b3bc7a5b93976a Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
parent
e851899497
commit
bbd24e941c
@ -744,7 +744,7 @@ class WorklistsController(rest.RestController):
|
||||
if 'items' in worklist_dict:
|
||||
del worklist_dict['items']
|
||||
|
||||
filters = worklist_dict.pop('filters')
|
||||
filters = worklist_dict.pop('filters') or []
|
||||
owners = worklist_dict.pop('owners')
|
||||
users = worklist_dict.pop('users')
|
||||
if not owners:
|
||||
|
Loading…
x
Reference in New Issue
Block a user