Commit d5fcf0f672ffb5457c9b1bc345c4cf72a94af324

Authored by randx
1 parent 8d65f51e

Show labels specific to project

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/controllers/labels_controller.rb
... ... @@ -14,7 +14,7 @@ class LabelsController < ApplicationController
14 14 respond_to :js, :html
15 15  
16 16 def index
17   - @labels = Issue.tag_counts_on(:labels)
  17 + @labels = @project.issues.tag_counts_on(:labels).order('count DESC')
18 18 end
19 19  
20 20 protected
... ...