summaryrefslogtreecommitdiff
path: root/app/contexts
diff options
context:
space:
mode:
authorRiyad Preukschas <riyad@informatik.uni-bremen.de>2012-10-29 19:37:37 +0100
committerRiyad Preukschas <riyad@informatik.uni-bremen.de>2012-12-03 22:51:55 +0100
commit6c6f415cae54be4dae4522e901ed55c9dae04a15 (patch)
tree6db6a4cdf9e22d77956cca9748843437f410868f /app/contexts
parent5c2f6d7f050222d2601218a0bec1dadcee5fcfa0 (diff)
downloadgitlab-ce-6c6f415cae54be4dae4522e901ed55c9dae04a15.tar.gz
Fix appending diff line notes
Diffstat (limited to 'app/contexts')
-rw-r--r--app/contexts/notes/create_context.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/contexts/notes/create_context.rb b/app/contexts/notes/create_context.rb
index d93adb835ef..1367dff4699 100644
--- a/app/contexts/notes/create_context.rb
+++ b/app/contexts/notes/create_context.rb
@@ -3,8 +3,8 @@ module Notes
def execute
note = project.notes.new(params[:note])
note.author = current_user
- note.notify = true if params[:notify] == '1'
- note.notify_author = true if params[:notify_author] == '1'
+ note.notify = params[:notify].present?
+ note.notify_author = params[:notify_author].present?
note.save
note
end