Răsfoiți Sursa

last handler for undefined in models/comment.js

sou 8 ani în urmă
părinte
comite
29c3165119
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  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) {