Fixed check for issue is nil before getting issue details
This commit is contained in:
parent
436ea162bb
commit
9eedb3fcf8
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user