summaryrefslogtreecommitdiff
path: root/app/helpers/notes_helper.rb
diff options
context:
space:
mode:
authorRiyad Preukschas <riyad@informatik.uni-bremen.de>2012-11-22 02:57:22 +0100
committerRiyad Preukschas <riyad@informatik.uni-bremen.de>2012-12-03 22:51:56 +0100
commitc4a7824a8c6487b24379f7f85c26f182bbc1dee9 (patch)
treec23fdbf95bbcd8b3a46e2eaae6021e62a0bc3ff3 /app/helpers/notes_helper.rb
parent140652e9b019addaf7022e18b6816ecb36eee80c (diff)
downloadgitlab-ce-c4a7824a8c6487b24379f7f85c26f182bbc1dee9.tar.gz
Fix wall notes
Diffstat (limited to 'app/helpers/notes_helper.rb')
-rw-r--r--app/helpers/notes_helper.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/helpers/notes_helper.rb b/app/helpers/notes_helper.rb
index e82537a336f..fd920e23c19 100644
--- a/app/helpers/notes_helper.rb
+++ b/app/helpers/notes_helper.rb
@@ -1,7 +1,8 @@
module NotesHelper
# 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
def note_target_fields