summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrandx <dmitriy.zaporozhets@gmail.com>2012-08-24 15:34:27 +0300
committerrandx <dmitriy.zaporozhets@gmail.com>2012-08-24 15:34:27 +0300
commitd5fcf0f672ffb5457c9b1bc345c4cf72a94af324 (patch)
tree311007582702f02c1c81a6cfb6f5a1edcbff6dde
parent8d65f51e635ae84dd19b361a2cf9fb1ef2c2014b (diff)
downloadgitlab-ce-d5fcf0f672ffb5457c9b1bc345c4cf72a94af324.tar.gz
Show labels specific to project
-rw-r--r--app/controllers/labels_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/labels_controller.rb b/app/controllers/labels_controller.rb
index f52fc2d8180..e703f822982 100644
--- a/app/controllers/labels_controller.rb
+++ b/app/controllers/labels_controller.rb
@@ -14,7 +14,7 @@ class LabelsController < ApplicationController
respond_to :js, :html
def index
- @labels = Issue.tag_counts_on(:labels)
+ @labels = @project.issues.tag_counts_on(:labels).order('count DESC')
end
protected