diff --git a/models/issue_comment.go b/models/issue_comment.go index e133cc049..85c01a4f1 100644 --- a/models/issue_comment.go +++ b/models/issue_comment.go @@ -231,12 +231,9 @@ func (c *Comment) LoadMilestone() error { has, err := x.ID(c.OldMilestoneID).Get(&oldMilestone) if err != nil { return err - } else if !has { - return ErrMilestoneNotExist{ - ID: c.OldMilestoneID, - } + } else if has { + c.OldMilestone = &oldMilestone } - c.OldMilestone = &oldMilestone } if c.MilestoneID > 0 { @@ -244,12 +241,9 @@ func (c *Comment) LoadMilestone() error { has, err := x.ID(c.MilestoneID).Get(&milestone) if err != nil { return err - } else if !has { - return ErrMilestoneNotExist{ - ID: c.MilestoneID, - } + } else if has { + c.Milestone = &milestone } - c.Milestone = &milestone } return nil } diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index 93151a259..bc43ff03b 100644 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -558,6 +558,7 @@ issues.remove_label_at = `removed the