mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-22 12:54:53 -05:00
adding calls to issue.LoadRepo() prior to calling issue.HTMLURL() (#9484)
This commit is contained in:
parent
30181d459d
commit
8e655728e9
1 changed files with 10 additions and 0 deletions
|
@ -29,6 +29,11 @@ func AddDependency(ctx *context.Context) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if err = issue.LoadRepo(); err != nil {
|
||||||
|
ctx.ServerError("LoadRepo", err)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
// Redirect
|
// Redirect
|
||||||
defer ctx.Redirect(issue.HTMLURL(), http.StatusSeeOther)
|
defer ctx.Redirect(issue.HTMLURL(), http.StatusSeeOther)
|
||||||
|
|
||||||
|
@ -83,6 +88,11 @@ func RemoveDependency(ctx *context.Context) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if err = issue.LoadRepo(); err != nil {
|
||||||
|
ctx.ServerError("LoadRepo", err)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
// Redirect
|
// Redirect
|
||||||
ctx.Redirect(issue.HTMLURL(), http.StatusSeeOther)
|
ctx.Redirect(issue.HTMLURL(), http.StatusSeeOther)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue