summaryrefslogtreecommitdiff
path: root/app/services/boards
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-06-06 12:59:50 +0100
committerPhil Hughes <me@iamphill.com>2017-06-06 12:59:50 +0100
commite7b4eade0d69a70400a8d18ec72218c7b0bf1517 (patch)
treeee25ce14951b9532366c95d9d2c17dd4dddf767f /app/services/boards
parenta980a4f63856af0b4edc54b2457eeb80321e4f87 (diff)
downloadgitlab-ce-e7b4eade0d69a70400a8d18ec72218c7b0bf1517.tar.gz
moved creating backlog list into list service
Diffstat (limited to 'app/services/boards')
-rw-r--r--app/services/boards/lists/list_service.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/services/boards/lists/list_service.rb b/app/services/boards/lists/list_service.rb
index c579ed4c869..4ec56c3ac4d 100644
--- a/app/services/boards/lists/list_service.rb
+++ b/app/services/boards/lists/list_service.rb
@@ -2,6 +2,8 @@ module Boards
module Lists
class ListService < BaseService
def execute(board)
+ board.lists.create(list_type: :backlog) unless board.lists.backlog.any?
+
board.lists
end
end