Procházet zdrojové kódy

last handler for undefined in models/comment.js

sou před 8 roky
rodič
revize
29c3165119
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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) {