From c4a7824a8c6487b24379f7f85c26f182bbc1dee9 Mon Sep 17 00:00:00 2001 From: Riyad Preukschas Date: Thu, 22 Nov 2012 02:57:22 +0100 Subject: Fix wall notes --- app/controllers/notes_controller.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'app/controllers/notes_controller.rb') diff --git a/app/controllers/notes_controller.rb b/app/controllers/notes_controller.rb index e04a61b2905..000c7bbb641 100644 --- a/app/controllers/notes_controller.rb +++ b/app/controllers/notes_controller.rb @@ -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 -- cgit v1.2.1