From 9b692a35cee532c9206fc89d8730afcf4254374e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kim=20=22BKC=22=20Carlb=C3=A4cker?= Date: Thu, 2 Feb 2017 17:26:57 +0100 Subject: [PATCH] work! --- routers/api/v1/repo/label.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routers/api/v1/repo/label.go b/routers/api/v1/repo/label.go index 673648579..b7901bf70 100644 --- a/routers/api/v1/repo/label.go +++ b/routers/api/v1/repo/label.go @@ -32,7 +32,7 @@ func GetLabel(ctx *context.APIContext) { label *models.Label err error ) - strID := ctx.ParamsInt64(":id") + strID := ctx.Params(":id") if intID, err2 := strconv.ParseInt(strID, 10, 64); err2 != nil { label, err = models.GetLabelOfRepoByName(ctx.Repo.Repository.ID, strID) } else {