Przeglądaj źródła

last handler for undefined in models/comment.js

sou 8 lat temu
rodzic
commit
29c3165119
1 zmienionych plików z 1 dodań i 1 usunięć
  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) {