Merge branch 'osw-order-boards-by-name' into 'master'

[Backport] Order boards dropdown alphabetically

See merge request gitlab-org/gitlab-ce!18065
This commit is contained in:
Sean McGivern 2018-03-30 08:58:15 +00:00
commit 85418f9ae8
1 changed files with 5 additions and 1 deletions

View File

@ -2,11 +2,15 @@ module Boards
class ListService < Boards::BaseService
def execute
create_board! if parent.boards.empty?
parent.boards
boards
end
private
def boards
parent.boards
end
def create_board!
Boards::CreateService.new(parent, current_user).execute
end