Mercurial > hg > soundsoftware-site
diff app/controllers/projects_controller.rb @ 767:dd33798e514d feature_14
Reverts changes made to Redmine Core's Projects Controller in commit:b2a9e64b8283. Pagination now being done for both normal and filtered projects index.
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Tue, 15 Nov 2011 15:03:17 +0000 |
parents | b2a9e64b8283 |
children | 7614169e14ed |
line wrap: on
line diff
--- a/app/controllers/projects_controller.rb Mon Nov 14 12:36:55 2011 +0000 +++ b/app/controllers/projects_controller.rb Tue Nov 15 15:03:17 2011 +0000 @@ -55,7 +55,7 @@ @project_count = Project.visible_roots.count @project_pages = Paginator.new self, @project_count, @limit, params['page'] @offset ||= @project_pages.current.offset - @projects = Project.visible_roots.find(@filtered_projects, :offset => @offset, :limit => @limit, :order => sort_clause) + @projects = Project.visible_roots.all(:offset => @offset, :limit => @limit, :order => sort_clause) if User.current.logged? # seems sort_by gives us case-sensitive ordering, which we don't want # @user_projects = User.current.projects.sort_by(&:name)