Просмотр исходного кода

last handler for undefined in models/comment.js

sou 8 лет назад
Родитель
Сommit
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) {