From d5fcf0f672ffb5457c9b1bc345c4cf72a94af324 Mon Sep 17 00:00:00 2001 From: randx Date: Fri, 24 Aug 2012 15:34:27 +0300 Subject: [PATCH] Show labels specific to project --- app/controllers/labels_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/labels_controller.rb b/app/controllers/labels_controller.rb index f52fc2d..e703f82 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 -- libgit2 0.21.2