mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-15 23:56:09 +10:00
Fix an issue causing the Dashboard/Milestones page to be blank Fixes #14505 and #14514. See merge request !3348
10 lines
252 B
Ruby
10 lines
252 B
Ruby
class Dashboard::LabelsController < Dashboard::ApplicationController
|
|
def index
|
|
labels = Label.where(project_id: projects).select(:title, :color).uniq(:title)
|
|
|
|
respond_to do |format|
|
|
format.json { render json: labels }
|
|
end
|
|
end
|
|
end
|