Fix wall notes
This commit is contained in:
parent
140652e9b0
commit
c4a7824a8c
5 changed files with 29 additions and 4 deletions
|
@ -71,6 +71,7 @@ class NotesController < ProjectResourceController
|
|||
|
||||
# Helps to distinguish e.g. commit notes in mr notes list
|
||||
def note_for_main_target?(note)
|
||||
@target_type.camelize == note.noteable_type && !note.for_diff_line?
|
||||
note.for_wall? ||
|
||||
(@target_type.camelize == note.noteable_type && !note.for_diff_line?)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue