Browse Source

repo/release: 404 when edit draft (4262)

pull/4280/head
Unknwon 8 years ago
parent
commit
aa99e805c8
No known key found for this signature in database
GPG Key ID: 25B575AE3213B2B3
  1. 2
      cmd/web.go

2
cmd/web.go

@ -529,7 +529,7 @@ func runWeb(ctx *cli.Context) error {
m.Post("/delete", repo.DeleteRelease) m.Post("/delete", repo.DeleteRelease)
m.Get("/edit/*", repo.EditRelease) m.Get("/edit/*", repo.EditRelease)
m.Post("/edit/*", bindIgnErr(form.EditRelease{}), repo.EditReleasePost) m.Post("/edit/*", bindIgnErr(form.EditRelease{}), repo.EditReleasePost)
}, reqRepoWriter, context.RepoRef()) }, reqRepoWriter)
// FIXME: Should use ctx.Repo.PullRequest to unify template, currently we have inconsistent URL // FIXME: Should use ctx.Repo.PullRequest to unify template, currently we have inconsistent URL
// for PR in same repository. After select branch on the page, the URL contains redundant head user name. // for PR in same repository. After select branch on the page, the URL contains redundant head user name.

Loading…
Cancel
Save