Do not show closed projects with list_projects

This commit is contained in:
Alexander Meindl 2015-11-20 10:29:02 +01:00
parent fd9fd740ca
commit 13844496f8

View File

@ -42,7 +42,7 @@ module RedmineTweaks
if ActiveRecord::VERSION::MAJOR < 4
all_projects = Project.active.visible(User.current).find(:all, order: 'projects.name')
else
all_projects = Project.visible.sorted
all_projects = Project.active.visible.sorted
end
my_projects = []
all_projects.each do |p|