diff options
author | Rubén Dávila <ruben@gitlab.com> | 2015-11-20 18:49:12 +0300 |
---|---|---|
committer | Rubén Dávila <ruben@gitlab.com> | 2015-11-20 18:49:12 +0300 |
commit | fa9f2dec0e07ff3ae3a2acd6ee0586e317bdb7b6 (patch) | |
tree | df50951dd8963d6a8cd42e9e46f1c5e13e7d5bd6 /app/services/system_note_service.rb | |
parent | fc18e96db38f5d5ab5e102fe630682f6779203ba (diff) |
Monkey patching TaskList::Item is no longer required. #2296
Diffstat (limited to 'app/services/system_note_service.rb')
-rw-r--r-- | app/services/system_note_service.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/services/system_note_service.rb b/app/services/system_note_service.rb index 7c5d523ef39..7e2bc834176 100644 --- a/app/services/system_note_service.rb +++ b/app/services/system_note_service.rb @@ -355,7 +355,8 @@ class SystemNoteService # # Returns the created Note object def self.change_task_status(noteable, project, author, new_task) - body = "Marked the task **#{new_task.source}** as #{new_task.status_label}" + status_label = new_task.complete? ? Taskable::COMPLETED : Taskable::INCOMPLETE + body = "Marked the task **#{new_task.source}** as #{status_label}" create_note(noteable: noteable, project: project, author: author, note: body) end end |