summaryrefslogtreecommitdiff
path: root/app/finders/admin
diff options
context:
space:
mode:
authorTiago Botelho <tiagonbotelho@hotmail.com>2017-08-08 17:40:22 +0100
committerTiago Botelho <tiagonbotelho@hotmail.com>2017-08-11 11:45:09 +0100
commit21066e827ab6b957b0948b025745b563f01a00d5 (patch)
tree088a6b6427fc2455a40c0db881046cc4645cc61f /app/finders/admin
parent86f5a4aaf19935b4d23a81426c1576bc16024696 (diff)
downloadgitlab-ce-21066e827ab6b957b0948b025745b563f01a00d5.tar.gz
Pending delete projects no longer return 500 error in Admins projects view35435-pending-delete-project-error-in-admin-interface-fix
Diffstat (limited to 'app/finders/admin')
-rw-r--r--app/finders/admin/projects_finder.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/finders/admin/projects_finder.rb b/app/finders/admin/projects_finder.rb
index a5ba791a513..7176bfe22d6 100644
--- a/app/finders/admin/projects_finder.rb
+++ b/app/finders/admin/projects_finder.rb
@@ -18,7 +18,7 @@ class Admin::ProjectsFinder
end
def execute
- items = Project.with_statistics
+ items = Project.without_deleted.with_statistics
items = items.in_namespace(namespace_id) if namespace_id.present?
items = items.where(visibility_level: visibility_level) if visibility_level.present?
items = items.with_push if with_push.present?