diff --git a/routers/repo/issue_dependency.go b/routers/repo/issue_dependency.go index 00d7d85ce9cf4..d865a56518b72 100644 --- a/routers/repo/issue_dependency.go +++ b/routers/repo/issue_dependency.go @@ -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)