From 8d6224435380b264fc2930e73961e3b1a312972f Mon Sep 17 00:00:00 2001 From: Brad Albright Date: Tue, 24 Dec 2019 14:56:42 -0600 Subject: [PATCH] adding calls to issue.LoadRepo() prior to calling issue.HTMLURL() --- routers/repo/issue_dependency.go | 10 ++++++++++ 1 file changed, 10 insertions(+) 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)