Fixed failing tests
This commit is contained in:
parent
0eecc21485
commit
a45cb68809
2 changed files with 6 additions and 7 deletions
|
@ -25,7 +25,7 @@ class Projects::MilestonesController < Projects::ApplicationController
|
||||||
@milestones = @milestones.page(params[:page]).per(PER_PAGE)
|
@milestones = @milestones.page(params[:page]).per(PER_PAGE)
|
||||||
end
|
end
|
||||||
format.json do
|
format.json do
|
||||||
render json: @milestones_all
|
render json: @milestones
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -110,12 +110,11 @@ module LabelsHelper
|
||||||
end
|
end
|
||||||
|
|
||||||
def projects_labels_options
|
def projects_labels_options
|
||||||
labels =
|
if @project
|
||||||
if @project
|
@project.labels
|
||||||
@project.labels
|
else
|
||||||
else
|
Label.where(project_id: @projects)
|
||||||
Label.where(project_id: @projects)
|
end
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def labels_filter_path
|
def labels_filter_path
|
||||||
|
|
Loading…
Reference in a new issue