From 5ded01f2c6ec01718e91af63252fab61efd2b7bd Mon Sep 17 00:00:00 2001 From: Jermolene Date: Sun, 9 Nov 2014 17:15:40 +0000 Subject: [PATCH] Fix problem with blank values in action-setfield widget MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit One manifestation of this problem was that it wasn’t possible to use the edit template to add a field without specifying a value --- core/modules/widgets/action-setfield.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/widgets/action-setfield.js b/core/modules/widgets/action-setfield.js index 600d7a2da..07291ed0d 100644 --- a/core/modules/widgets/action-setfield.js +++ b/core/modules/widgets/action-setfield.js @@ -58,7 +58,7 @@ Invoke the action associated with this widget */ SetFieldWidget.prototype.invokeAction = function(triggeringWidget,event) { var self = this; - if(this.actionValue) { + if(this.actionField || this.actionIndex) { this.wiki.setText(this.actionTiddler,this.actionField,this.actionIndex,this.actionValue); } $tw.utils.each(this.attributes,function(attribute,name) {