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