@@ -139,7 +139,7 @@ func GetLabel(ctx *context.APIContext) {
139139 label * issues_model.Label
140140 err error
141141 )
142- strID := ctx .PathParam (": id" )
142+ strID := ctx .PathParam ("id" )
143143 if intID , err2 := strconv .ParseInt (strID , 10 , 64 ); err2 != nil {
144144 label , err = issues_model .GetLabelInOrgByName (ctx , ctx .Org .Organization .ID , strID )
145145 } else {
@@ -190,7 +190,7 @@ func EditLabel(ctx *context.APIContext) {
190190 // "422":
191191 // "$ref": "#/responses/validationError"
192192 form := web .GetForm (ctx ).(* api.EditLabelOption )
193- l , err := issues_model .GetLabelInOrgByID (ctx , ctx .Org .Organization .ID , ctx .PathParamInt64 (": id" ))
193+ l , err := issues_model .GetLabelInOrgByID (ctx , ctx .Org .Organization .ID , ctx .PathParamInt64 ("id" ))
194194 if err != nil {
195195 if issues_model .IsErrOrgLabelNotExist (err ) {
196196 ctx .NotFound ()
@@ -249,7 +249,7 @@ func DeleteLabel(ctx *context.APIContext) {
249249 // "404":
250250 // "$ref": "#/responses/notFound"
251251
252- if err := issues_model .DeleteLabel (ctx , ctx .Org .Organization .ID , ctx .PathParamInt64 (": id" )); err != nil {
252+ if err := issues_model .DeleteLabel (ctx , ctx .Org .Organization .ID , ctx .PathParamInt64 ("id" )); err != nil {
253253 ctx .Error (http .StatusInternalServerError , "DeleteLabel" , err )
254254 return
255255 }
0 commit comments