Commit 0f080a94106904c57cfcb6c1d02c6207c1d4617e
1 parent
499a1185
Exists in
spb-stable
and in
3 other branches
Make sure note.system is false if created by user
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Showing
1 changed file
with
1 additions
and
0 deletions
Show diff stats
app/services/notes/create_service.rb
@@ -3,6 +3,7 @@ module Notes | @@ -3,6 +3,7 @@ module Notes | ||
3 | def execute | 3 | def execute |
4 | note = project.notes.new(params[:note]) | 4 | note = project.notes.new(params[:note]) |
5 | note.author = current_user | 5 | note.author = current_user |
6 | + note.system = false | ||
6 | note.save | 7 | note.save |
7 | note | 8 | note |
8 | end | 9 | end |