Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2015-12-12 20:38:12 +0300
committerRobert Speicher <rspeicher@gmail.com>2015-12-12 20:38:12 +0300
commit118d96906ae3923206ca91ca9ccd3c5bc6c2fd3a (patch)
tree0892bfa2c1d39c4e160ece700602e7cfee6e7c2d /app/controllers/projects/notes_controller.rb
parenta5e449571bb941d65d33569a0f0db575a5b3d399 (diff)
Fix note polling
Closes #4032
Diffstat (limited to 'app/controllers/projects/notes_controller.rb')
-rw-r--r--app/controllers/projects/notes_controller.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/controllers/projects/notes_controller.rb b/app/controllers/projects/notes_controller.rb
index 88b949a27ab..ae6e9f6fd38 100644
--- a/app/controllers/projects/notes_controller.rb
+++ b/app/controllers/projects/notes_controller.rb
@@ -13,7 +13,8 @@ class Projects::NotesController < Projects::ApplicationController
@notes.each do |note|
notes_json[:notes] << {
id: note.id,
- html: note_to_html(note)
+ html: note_to_html(note),
+ valid: note.valid?
}
end