diff --git a/models/issue_comment.go b/models/issue_comment.go index 69edf28f5..91d855151 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 c2df7f27d..c1aa44e8d 100644 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -612,6 +612,7 @@ issues.remove_label_at = `removed the