From 09aafbcce1ef972e94d403e8d8b03f7eb48839b3 Mon Sep 17 00:00:00 2001 From: oohira Date: Mon, 8 Feb 2016 23:40:17 +0900 Subject: [PATCH] Fix wrong query to find the specified label --- src/main/scala/gitbucket/core/model/BasicTemplate.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/scala/gitbucket/core/model/BasicTemplate.scala b/src/main/scala/gitbucket/core/model/BasicTemplate.scala index 97fcb75a6..53388fc01 100644 --- a/src/main/scala/gitbucket/core/model/BasicTemplate.scala +++ b/src/main/scala/gitbucket/core/model/BasicTemplate.scala @@ -35,7 +35,7 @@ protected[model] trait TemplateComponent { self: Profile => byRepository(userName, repositoryName) && (this.labelId === labelId) def byLabel(owner: String, repository: String, labelName: String) = - byRepository(userName, repositoryName) && (this.labelName === labelName.bind) + byRepository(owner, repository) && (this.labelName === labelName.bind) } trait MilestoneTemplate extends BasicTemplate { self: Table[_] =>