summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Knox <psimyn@gmail.com>2018-01-08 21:06:24 +1100
committerSimon Knox <psimyn@gmail.com>2018-01-08 21:06:24 +1100
commit90b63edc9deee906ff770d3be3322e99f4a196b4 (patch)
treedd2a235328274736529470943f164b62209b5c93
parent5efa48a59652d867514bbec5924162ecaa6fabb1 (diff)
downloadgitlab-ce-90b63edc9deee906ff770d3be3322e99f4a196b4.tar.gz
skeleton notes for discussions instead of notes
-rw-r--r--app/helpers/notes_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/notes_helper.rb b/app/helpers/notes_helper.rb
index 2b62fa55d71..6bb6519769c 100644
--- a/app/helpers/notes_helper.rb
+++ b/app/helpers/notes_helper.rb
@@ -165,7 +165,7 @@ module NotesHelper
markdownDocsPath: help_page_path('user/markdown'),
quickActionsDocsPath: help_page_path('user/project/quick_actions'),
notesPath: notes_url,
- totalNotes: issuable.notes.length,
+ totalNotes: issuable.discussions.length,
lastFetchedAt: Time.now
}.to_json
end