Revision 901:6e80a22916e9

View differences:

vendor/plugins/redmine_tags/app/views/projects/_tags_form.html.erb
3 3
  <p id="project_tags"><%= f.text_field :tag_list, :label => :tags, :size => 60, :class => 'hol' %></p>
4 4
  <div id="project_tag_candidates" class="autocomplete"></div>
5 5
  <%= javascript_include_tag 'tags_input', :plugin => 'redmine_tags' %>
6
  <%= javascript_tag "observeProjectTagsField('#{url_for(:controller => 'auto_completes', :action => 'project_tags', :project_id => 1)}', false)" %>
6
  <%= javascript_tag "observeProjectTagsField('#{url_for(:controller => 'auto_completes', :action => 'project_tags', :project_id => Project.first.id)}', false)" %>
7 7
</div>
8 8
<% end -%>
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