summaryrefslogtreecommitdiff
path: root/app/controllers/notes_controller.rb
diff options
context:
space:
mode:
authorCedric Gatay <cedric@gatay.fr>2011-12-24 17:28:20 +0100
committerCedric Gatay <cedric@gatay.fr>2011-12-24 17:28:20 +0100
commitc0b47d3245a15b12ebe7a6f4154f35ba91396c3c (patch)
treea9f99d01f42c8ac6366a5cf5902ce899ce12b598 /app/controllers/notes_controller.rb
parent89a43543e9c229c223ef4d3031e83dc35e3fd3c5 (diff)
downloadgitlab-ce-c0b47d3245a15b12ebe7a6f4154f35ba91396c3c.tar.gz
Alert commit author on note
Allows to alert only the commit author when a new note is added on a commit, useful when gitlabhq is used for code reviews, allows less noise with mails...
Diffstat (limited to 'app/controllers/notes_controller.rb')
-rw-r--r--app/controllers/notes_controller.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/notes_controller.rb b/app/controllers/notes_controller.rb
index 5d99d1e273e..19c8571705d 100644
--- a/app/controllers/notes_controller.rb
+++ b/app/controllers/notes_controller.rb
@@ -13,6 +13,7 @@ class NotesController < ApplicationController
@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.save
respond_to do |format|