1
0
Fork 0
forked from forgejo/forgejo

Fix incorrect menu/link on webhook edit page (#29709)

Fix #29699

---------

Co-authored-by: silverwind <me@silverwind.io>
(cherry picked from commit 2da13675c0cfdc531044553636c3b74f2fda3eb4)
This commit is contained in:
yp05327 2024-03-14 10:37:15 +09:00 committed by Earl Warren
parent 071d871dcf
commit 2da0628f18
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00
2 changed files with 42 additions and 0 deletions

View file

@ -616,6 +616,7 @@ func checkWebhook(ctx *context.Context) (*ownerRepoCtx, *webhook.Webhook) {
return nil, nil
}
ctx.Data["BaseLink"] = orCtx.Link
ctx.Data["BaseLinkNew"] = orCtx.LinkNew
var w *webhook.Webhook
if orCtx.RepoID > 0 {