diff options
author | Sean McGivern <sean@mcgivern.me.uk> | 2016-11-21 12:54:55 +0000 |
---|---|---|
committer | Sean McGivern <sean@mcgivern.me.uk> | 2016-11-21 12:54:55 +0000 |
commit | 671c6d7d577d6b872bee7634c4eaf6b4da16919f (patch) | |
tree | dd42a8956b92aefbd270f1696d30b358a48f07bd /app/services | |
parent | 0be557331d8341fef473ca59e63116ef60f400e6 (diff) | |
parent | 452d1d0824f44664484c35a2acc7c008c8167196 (diff) | |
download | gitlab-ce-671c6d7d577d6b872bee7634c4eaf6b4da16919f.tar.gz |
Merge branch 'ee-870-backport' into 'master'
Backport some changes done from Time Tracking feature in EE.
See merge request !7604
Diffstat (limited to 'app/services')
-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 |