Skip to content
Snippets Groups Projects
Commit 85418f9a authored by Sean McGivern's avatar Sean McGivern
Browse files

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
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment