Commit 85418f9a authored by Sean McGivern's avatar Sean McGivern

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

[Backport] Order boards dropdown alphabetically

See merge request gitlab-org/gitlab-ce!18065
parents a49d37ee 455e7a2f
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment