diff options
author | David Schneiderbauer <daviian@users.noreply.github.com> | 2017-10-08 13:37:31 +0200 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2017-10-08 19:37:31 +0800 |
commit | 0cef8ce192d50c4d5346b1e47759578a32e20efb (patch) | |
tree | d80af3959cc79e45fd3e1cee90c3501821e212a8 /routers/repo | |
parent | ebac051e7207181ac3d7bbe288536bf2224c9c0e (diff) | |
download | gitea-0cef8ce192d50c4d5346b1e47759578a32e20efb.tar.gz gitea-0cef8ce192d50c4d5346b1e47759578a32e20efb.zip |
fix panic on gogs webhook creation (#2675)
* fix panic on gogs webhook creation
Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com>
* fix panic in gogs webhook edit
Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com>
Diffstat (limited to 'routers/repo')
-rw-r--r-- | routers/repo/webhook.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/repo/webhook.go b/routers/repo/webhook.go index 9c88b4385e..81f79582de 100644 --- a/routers/repo/webhook.go +++ b/routers/repo/webhook.go @@ -174,7 +174,7 @@ func WebHooksNewPost(ctx *context.Context, form auth.NewWebhookForm) { } // GogsHooksNewPost response for creating webhook -func GogsHooksNewPost(ctx *context.Context, form auth.NewWebhookForm) { +func GogsHooksNewPost(ctx *context.Context, form auth.NewGogshookForm) { ctx.Data["Title"] = ctx.Tr("repo.settings.add_webhook") ctx.Data["PageIsSettingsHooks"] = true ctx.Data["PageIsSettingsHooksNew"] = true @@ -420,7 +420,7 @@ func WebHooksEditPost(ctx *context.Context, form auth.NewWebhookForm) { } // GogsHooksEditPost response for editing gogs hook -func GogsHooksEditPost(ctx *context.Context, form auth.NewWebhookForm) { +func GogsHooksEditPost(ctx *context.Context, form auth.NewGogshookForm) { ctx.Data["Title"] = ctx.Tr("repo.settings.update_webhook") ctx.Data["PageIsSettingsHooks"] = true ctx.Data["PageIsSettingsHooksEdit"] = true |