From ff4d76f04527766f9db291822c445124388cff7b Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Mon, 4 Nov 2013 10:00:34 +0000 Subject: [PATCH] Fix up missing variable values We were crashing if a variable was inadvertantly set to undefined --- core/modules/new_widgets/widget.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/new_widgets/widget.js b/core/modules/new_widgets/widget.js index 53fcfb199..9b4e25146 100755 --- a/core/modules/new_widgets/widget.js +++ b/core/modules/new_widgets/widget.js @@ -88,7 +88,7 @@ Widget.prototype.getVariable = function(name,options) { return this.evaluateMacroModule(name,actualParams,options.defaultValue); } // Get the value - var value = node.variables[name].value; + var value = node.variables[name].value || ""; // Substitute any parameters specified in the definition value = this.substituteVariableParameters(value,node.variables[name].params,actualParams); value = this.substituteVariableReferences(value);