update projects query for redmine 3 (#9475)

This commit is contained in:
Serghei Mihai 2016-01-09 19:27:13 +01:00
parent e467f0bba9
commit c49b7aabe6
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@ module WelcomeControllerPatch
base.class_eval do
def index
@news = News.latest User.current
@projects = Project.all_public.active.find(:all, :order => "LOWER(name)").find_all { |project| not project.repository.nil? }
@projects = Project.all_public.active.order("LOWER(name)").find_all { |project| not project.repository.nil? }
end
end
end