mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-31 11:52:10 +00:00
Refactor StringsToInt64s (#29967)
And close #27176 (cherry picked from commit cdb4d1a8db096d60dba04728924dab85def45b19)
This commit is contained in:
parent
f8060bb5d9
commit
e5920b4a62
12 changed files with 30 additions and 27 deletions
|
@ -268,8 +268,7 @@ func NotificationSubscriptions(ctx *context.Context) {
|
|||
var err error
|
||||
labelIDs, err = base.StringsToInt64s(strings.Split(selectedLabels, ","))
|
||||
if err != nil {
|
||||
ctx.ServerError("StringsToInt64s", err)
|
||||
return
|
||||
ctx.Flash.Error(ctx.Tr("invalid_data", selectedLabels), true)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue