# HG changeset patch # User Chris Cannam # Date 1352469529 0 # Node ID c1b8a34d3560b90043972a6592e9275aee57f4cd # Parent 6982f326cb06554d2889eea20573f5fa4e0f413f# Parent c43450d547874fee7e6ab82a8f9c7c7a514d08fb Merge diff -r 6982f326cb06 -r c1b8a34d3560 app/helpers/projects_helper.rb --- a/app/helpers/projects_helper.rb Fri Nov 09 11:29:47 2012 +0000 +++ b/app/helpers/projects_helper.rb Fri Nov 09 13:58:49 2012 +0000 @@ -162,14 +162,12 @@ end - # Renders a tree of projects that the current user does not belong - # to, or of all projects if the current user is not logged in. The - # given collection may be a subset of the whole project tree - # (eg. some intermediate nodes are private and can not be seen). We - # are potentially interested in various things: the project name, - # description, manager(s), creation date, last activity date, - # general activity level, whether there is anything actually hosted - # here for the project, etc. + # Renders a tree of projects. The given collection may be a subset + # of the whole project tree (eg. some intermediate nodes are private + # and can not be seen). We are potentially interested in various + # things: the project name, description, manager(s), creation date, + # last activity date, general activity level, whether there is + # anything actually hosted here for the project, etc. def render_project_table(projects) s = "" diff -r 6982f326cb06 -r c1b8a34d3560 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 Fri Nov 09 11:29:47 2012 +0000 +++ b/vendor/plugins/redmine_tags/lib/redmine_tags/patches/projects_controller_patch.rb Fri Nov 09 13:58:49 2012 +0000 @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- require_dependency 'projects_controller' module RedmineTags @@ -127,13 +128,10 @@ end unless @tag_list.empty? - @tagged_projects_ids = Project.visible.tagged_with(@tag_list).collect{ |project| Project.find(project.id) } + @tagged_projects_ids = Project.visible.tagged_with(@tag_list).collect{ |project| Project.find(project.id).root } @projects = @projects & @tagged_projects_ids + @projects = @projects.uniq end - - @projects = @projects.collect{ |project| project.root } - @projects = @projects.uniq - end end end