From c77b4518631d236f96334e13bd0649675b2a1e3c Mon Sep 17 00:00:00 2001 From: Jermolene Date: Sun, 10 Nov 2013 19:21:37 +0000 Subject: [PATCH] Fixed bug when using checkbox widget to apply a tag to a tiddler that is untagged --- core/modules/widgets/checkbox.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/widgets/checkbox.js b/core/modules/widgets/checkbox.js index 6f32afdd7..07cb95a7a 100644 --- a/core/modules/widgets/checkbox.js +++ b/core/modules/widgets/checkbox.js @@ -62,7 +62,7 @@ CheckboxWidget.prototype.handleChangeEvent = function(event) { var checked = this.inputDomNode.checked, tiddler = this.wiki.getTiddler(this.checkboxTitle); if(tiddler && tiddler.hasTag(this.checkboxTag) !== checked) { - var newTags = tiddler.fields.tags.slice(0), + var newTags = (tiddler.fields.tags || []).slice(0), pos = newTags.indexOf(this.checkboxTag); if(pos !== -1) { newTags.splice(pos,1);