Commit d5fcf0f672ffb5457c9b1bc345c4cf72a94af324
1 parent
8d65f51e
Exists in
master
and in
4 other branches
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,7 +14,7 @@ class LabelsController < ApplicationController | ||
14 | respond_to :js, :html | 14 | respond_to :js, :html |
15 | 15 | ||
16 | def index | 16 | def index |
17 | - @labels = Issue.tag_counts_on(:labels) | 17 | + @labels = @project.issues.tag_counts_on(:labels).order('count DESC') |
18 | end | 18 | end |
19 | 19 | ||
20 | protected | 20 | protected |