1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00

Refactor StringsToInt64s (#29967)

And close #27176
This commit is contained in:
wxiaoguang
2024-03-21 23:07:35 +08:00
committed by GitHub
parent 82979588f4
commit cdb4d1a8db
12 changed files with 30 additions and 27 deletions

View File

@@ -187,8 +187,7 @@ func issues(ctx *context.Context, milestoneID, projectID int64, isPullOption opt
if len(selectLabels) > 0 {
labelIDs, err = base.StringsToInt64s(strings.Split(selectLabels, ","))
if err != nil {
ctx.ServerError("StringsToInt64s", err)
return
ctx.Flash.Error(ctx.Tr("invalid_data", selectLabels), true)
}
}