Преглед изворни кода

last handler for undefined in models/comment.js

sou пре 8 година
родитељ
комит
29c3165119
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      lib/models/comment.js

+ 1 - 1
lib/models/comment.js

@@ -29,7 +29,7 @@ module.exports = function(crowi) {
       newComment.revision = revisionId;
       newComment.comment = comment;
       newComment.commentPosition = position;
-      newComment.isMarkdown = isMarkdown;
+      newComment.isMarkdown = isMarkdown || false;
 
       newComment.save(function(err, data) {
         if (err) {