# HG changeset patch # User luisf # Date 1328196050 0 # Node ID 5d5943de529ffc0315af79f2dfe817c10fbbd0c8 # Parent 4884d821863af7849af6f172336d64b98a0c0ce5 Fixed Bug #367. diff -r 4884d821863a -r 5d5943de529f 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:20:50 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