From 9eedb3fcf829ca2e6d77e543229f166d17173223 Mon Sep 17 00:00:00 2001 From: kolaente Date: Mon, 1 Jan 2018 14:32:03 +0100 Subject: [PATCH] Fixed check for issue is nil before getting issue details --- models/issue_comment.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/issue_comment.go b/models/issue_comment.go index 7a1243581..7e6752f71 100644 --- a/models/issue_comment.go +++ b/models/issue_comment.go @@ -269,7 +269,7 @@ func (c *Comment) LoadAssignees() error { // LoadDepIssueDetails loads Dependent Issue Details func (c *Comment) LoadDepIssueDetails() error { var err error - if c.DependentIssueID > 0 { + if c.DependentIssueID > 0 && c.DependentIssue == nil{ c.DependentIssue, err = getIssueByID(x, c.DependentIssueID) if err != nil { return err