Merge "handle missing lanes arg when creating a board"

This commit is contained in:
Zuul 2018-02-17 10:31:34 +00:00 committed by Gerrit Code Review
commit 8a0893e8bf
1 changed files with 1 additions and 1 deletions

View File

@ -325,7 +325,7 @@ class BoardsController(rest.RestController):
if board.creator_id and board.creator_id != user_id:
abort(400, _("You can't select the creator of a board."))
board_dict.update({"creator_id": user_id})
lanes = board_dict.pop('lanes')
lanes = board_dict.pop('lanes') or []
owners = board_dict.pop('owners')
users = board_dict.pop('users')
if not owners: