diff options
author | Ruben Davila <rdavila84@gmail.com> | 2016-11-18 21:19:04 -0500 |
---|---|---|
committer | Ruben Davila <rdavila84@gmail.com> | 2016-11-18 21:19:04 -0500 |
commit | 452d1d0824f44664484c35a2acc7c008c8167196 (patch) | |
tree | 4fc0203967136f3a3f1d93fd42ae565f3afffc0a /app/services/notes | |
parent | aea8baed3093c513560e9ac5ac0c5c99508d3001 (diff) | |
download | gitlab-ce-452d1d0824f44664484c35a2acc7c008c8167196.tar.gz |
Backport some changes done from Time Tracking feature in EE.ee-870-backport
Diffstat (limited to 'app/services/notes')
-rw-r--r-- | app/services/notes/create_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/notes/create_service.rb b/app/services/notes/create_service.rb index e338792412b..7935fabe2da 100644 --- a/app/services/notes/create_service.rb +++ b/app/services/notes/create_service.rb @@ -35,7 +35,7 @@ module Notes todo_service.new_note(note, current_user) end - if command_params && command_params.any? + if command_params.present? slash_commands_service.execute(command_params, note) # We must add the error after we call #save because errors are reset |