# HG changeset patch # User luisf # Date 1328196069 0 # Node ID f2a30f704798e1601f8fb673273283f4ef7e31c3 # Parent 4884d821863af7849af6f172336d64b98a0c0ce5# Parent 5d5943de529ffc0315af79f2dfe817c10fbbd0c8 Merge from branch "bug_367" diff -r 4884d821863a -r f2a30f704798 vendor/plugins/redmine_tags/lib/redmine_tags/patches/projects_controller_patch.rb --- a/vendor/plugins/redmine_tags/lib/redmine_tags/patches/projects_controller_patch.rb Thu Feb 02 14:04:20 2012 +0000 +++ b/vendor/plugins/redmine_tags/lib/redmine_tags/patches/projects_controller_patch.rb Thu Feb 02 15:21:09 2012 +0000 @@ -34,6 +34,7 @@ sort_update %w(name lft created_on updated_on) @limit = per_page_option @project_count = Project.visible_roots.find(@projects).count + @project_pages = ActionController::Pagination::Paginator.new self, @project_count, @limit, params['page'] @offset ||= @project_pages.current.offset end @@ -120,9 +121,9 @@ end if @question == "" - @projects = Project.visible + @projects = Project.visible_roots else - @projects = Project.visible.search_by_question(@question) + @projects = Project.visible_roots.find(Project.visible.search_by_question(@question)) end unless @tag_list.empty? @@ -132,7 +133,7 @@ @projects = @projects.collect{ |project| project.root } @projects = @projects.uniq - + end end end