Revision 1025:02ee54197879 vendor/plugins/redmine_tags/lib/redmine_tags

View differences:

vendor/plugins/redmine_tags/lib/redmine_tags/patches/projects_controller_patch.rb
1
# -*- coding: utf-8 -*-
1 2
require_dependency 'projects_controller'
2 3

  
3 4
module RedmineTags
......
127 128
          end
128 129
  
129 130
          unless @tag_list.empty?
130
            @tagged_projects_ids = Project.visible.tagged_with(@tag_list).collect{ |project| Project.find(project.id) }
131
            @tagged_projects_ids = Project.visible.tagged_with(@tag_list).collect{ |project| Project.find(project.id).root }
131 132
            @projects = @projects & @tagged_projects_ids
133
            @projects = @projects.uniq
132 134
          end
133
          
134
          @projects = @projects.collect{ |project| project.root }
135
          @projects = @projects.uniq
136
                    
137 135
        end
138 136
      end
139 137
    end
vendor/plugins/redmine_tags/lib/redmine_tags/patches/projects_helper_patch.rb
4 4

  
5 5
      def self.included(base) # :nodoc:
6 6
        base.send(:include, InstanceMethods)
7
        base.send(:include, TagsHelper)
7 8
        base.class_eval do
8 9
          unloadable
9 10
        end

Also available in: Unified diff