Revision 899:5d5943de529f vendor/plugins/redmine_tags

View differences:

vendor/plugins/redmine_tags/lib/redmine_tags/patches/projects_controller_patch.rb
34 34
          sort_update %w(name lft created_on updated_on)
35 35
          @limit = per_page_option
36 36
          @project_count = Project.visible_roots.find(@projects).count
37

  
37 38
          @project_pages = ActionController::Pagination::Paginator.new self, @project_count, @limit, params['page']
38 39
          @offset ||= @project_pages.current.offset
39 40
        end
......
120 121
          end
121 122

  
122 123
          if  @question == ""
123
            @projects = Project.visible
124
            @projects = Project.visible_roots
124 125
          else
125
            @projects = Project.visible.search_by_question(@question)
126
            @projects = Project.visible_roots.find(Project.visible.search_by_question(@question))
126 127
          end
127 128
  
128 129
          unless @tag_list.empty?
......
132 133
          
133 134
          @projects = @projects.collect{ |project| project.root }
134 135
          @projects = @projects.uniq
135

  
136
                    
136 137
        end
137 138
      end
138 139
    end

Also available in: Unified diff