Browse Source

adding calls to issue.LoadRepo() prior to calling issue.HTMLURL() (#9484)

for-closed-social
Brad Albright 4 years ago
committed by Lauris BH
parent
commit
8e655728e9
1 changed files with 10 additions and 0 deletions
  1. +10
    -0
      routers/repo/issue_dependency.go

+ 10
- 0
routers/repo/issue_dependency.go View File

@ -29,6 +29,11 @@ func AddDependency(ctx *context.Context) {
return
}
if err = issue.LoadRepo(); err != nil {
ctx.ServerError("LoadRepo", err)
return
}
// Redirect
defer ctx.Redirect(issue.HTMLURL(), http.StatusSeeOther)
@ -83,6 +88,11 @@ func RemoveDependency(ctx *context.Context) {
return
}
if err = issue.LoadRepo(); err != nil {
ctx.ServerError("LoadRepo", err)
return
}
// Redirect
ctx.Redirect(issue.HTMLURL(), http.StatusSeeOther)

Loading…
Cancel
Save