From ea6d7f5c085842a7ebe38aedb455f9dc58d783f9 Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Tue, 10 Jul 2012 23:17:39 +0100 Subject: [PATCH] Fixed a long standing issue with javascript module tiddlers being truncated Ouch! --- core/modules/deserializers.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/modules/deserializers.js b/core/modules/deserializers.js index 515926cce..495787a38 100644 --- a/core/modules/deserializers.js +++ b/core/modules/deserializers.js @@ -63,7 +63,9 @@ exports["application/json"] = function(text,fields) { getKnownFields = function(tid) { var fields = {}; "title text created creator modified modifier type tags".split(" ").forEach(function(value) { - fields[value] = tid[value]; + if(tid[value] !== null) { + fields[value] = tid[value]; + } }); return fields; };