diff options
author | Brett Walker <bwalker@gitlab.com> | 2019-01-22 18:05:38 -0600 |
---|---|---|
committer | Fatih Acet <acetfatih@gmail.com> | 2019-01-30 23:18:16 +0100 |
commit | d9c5668d2915d64cbd91880e1ff1c0c743e8aa99 (patch) | |
tree | 50b2362104953265170ae25a9026c6ad102e0b0d /app/services/issuable/common_system_notes_service.rb | |
parent | 6243c04e20b480c8353ac820ac4eb7ea43b92718 (diff) | |
download | gitlab-ce-d9c5668d2915d64cbd91880e1ff1c0c743e8aa99.tar.gz |
Refactor toggling of task list item
Diffstat (limited to 'app/services/issuable/common_system_notes_service.rb')
-rw-r--r-- | app/services/issuable/common_system_notes_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/issuable/common_system_notes_service.rb b/app/services/issuable/common_system_notes_service.rb index 885e14bba8f..77f38f8882e 100644 --- a/app/services/issuable/common_system_notes_service.rb +++ b/app/services/issuable/common_system_notes_service.rb @@ -20,7 +20,7 @@ module Issuable create_due_date_note if issuable.previous_changes.include?('due_date') create_milestone_note if issuable.previous_changes.include?('milestone_id') - create_labels_note(old_labels) if issuable.labels != old_labels + create_labels_note(old_labels) if old_labels && issuable.labels != old_labels end private |