aboutsummaryrefslogtreecommitdiff
path: root/routers/repo/issue.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/repo/issue.go')
-rw-r--r--routers/repo/issue.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/repo/issue.go b/routers/repo/issue.go
index cb508052..aa95c736 100644
--- a/routers/repo/issue.go
+++ b/routers/repo/issue.go
@@ -721,7 +721,7 @@ func UpdateIssueLabel(ctx *context.Context) {
}
} else {
isAttach := ctx.Query("action") == "attach"
- label, err := models.GetLabelByID(ctx.QueryInt64("id"))
+ label, err := models.GetLabelInRepoByID(ctx.Repo.Repository.ID, ctx.QueryInt64("id"))
if err != nil {
if models.IsErrLabelNotExist(err) {
ctx.Error(404, "GetLabelByID")