Fix appending diff line notes
This commit is contained in:
parent
5c2f6d7f05
commit
6c6f415cae
2 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue