Browse Source

HookType is case-sensitive

Update webhook wasn’t showing up because of the wrong case
for-closed-social
Christopher Brickley 10 years ago
parent
commit
7269b06fd5
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      routers/repo/setting.go

+ 2
- 2
routers/repo/setting.go View File

@ -354,11 +354,11 @@ func WebHooksEdit(ctx *middleware.Context) {
case models.SLACK:
{
ctx.Data["SlackHook"] = w.GetSlackHook()
ctx.Data["HookType"] = "slack"
ctx.Data["HookType"] = "Slack"
}
default:
{
ctx.Data["HookType"] = "gogs"
ctx.Data["HookType"] = "Gogs"
}
}
w.GetEvent()

Loading…
Cancel
Save