diff options
Diffstat (limited to 'app/models/milestone_note.rb')
-rw-r--r-- | app/models/milestone_note.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/models/milestone_note.rb b/app/models/milestone_note.rb index 19171e682b7..14808158fd0 100644 --- a/app/models/milestone_note.rb +++ b/app/models/milestone_note.rb @@ -17,6 +17,7 @@ class MilestoneNote < SyntheticNote def note_text(html: false) format = milestone&.group_milestone? ? :name : :iid - event.remove? ? 'removed milestone' : "changed milestone to #{milestone.to_reference(project, format: format)}" + reference = milestone&.to_reference(project, format: format) + event.remove? ? "removed milestone #{reference}" : "changed milestone to #{reference}" end end |