Fix appending diff line notes

This commit is contained in:
Riyad Preukschas 2012-10-29 19:37:37 +01:00
parent 5c2f6d7f05
commit 6c6f415cae
2 changed files with 3 additions and 3 deletions

View file

@ -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