From f57e04787738ad30fb05ac0e592239075b90507e Mon Sep 17 00:00:00 2001 From: Jermolene Date: Thu, 17 Apr 2014 14:43:12 +0100 Subject: [PATCH] Fix issues with tiddlers with null fields Fixing #567 --- boot/boot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boot/boot.js b/boot/boot.js index 399fbb073..b4b955609 100644 --- a/boot/boot.js +++ b/boot/boot.js @@ -750,7 +750,7 @@ $tw.Tiddler = function(/* [fields,] fields */) { var arg = arguments[c], src = (arg instanceof $tw.Tiddler) ? arg.fields : arg; for(var t in src) { - if(src[t] === undefined) { + if(src[t] === undefined || src[t] === null) { if(t in this.fields) { delete this.fields[t]; // If we get a field that's undefined, delete any previous field value }