summaryrefslogtreecommitdiff
path: root/app/controllers/ci
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2015-10-23 12:41:17 +0200
committerKamil Trzcinski <ayufan@ayufan.eu>2015-10-23 12:57:15 +0200
commit2afb2d3c6788d14039c64dcc2b1ee290c48a0de4 (patch)
treeca7637b4544e15683f4f9b947c430bc14d0a37f5 /app/controllers/ci
parentf230b42f8442f1e8d29bec7c5f84f73e02c9c845 (diff)
downloadgitlab-ce-2afb2d3c6788d14039c64dcc2b1ee290c48a0de4.tar.gz
Fix broken Runners admin page
Diffstat (limited to 'app/controllers/ci')
-rw-r--r--app/controllers/ci/admin/runners_controller.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/ci/admin/runners_controller.rb b/app/controllers/ci/admin/runners_controller.rb
index 110954a612d..0cafad27418 100644
--- a/app/controllers/ci/admin/runners_controller.rb
+++ b/app/controllers/ci/admin/runners_controller.rb
@@ -17,6 +17,7 @@ module Ci
@projects = @projects.where(gitlab_id: @gl_projects.select(:id))
end
@projects = @projects.where("ci_projects.id NOT IN (?)", @runner.projects.pluck(:id)) if @runner.projects.any?
+ @projects = @projects.joins(:gl_project)
@projects = @projects.page(params[:page]).per(30)
end