diff --git a/core/modules/widgets/parameters.js b/core/modules/widgets/parameters.js index 0e230303f..ef62ef4b5 100644 --- a/core/modules/widgets/parameters.js +++ b/core/modules/widgets/parameters.js @@ -42,7 +42,7 @@ Compute the internal state of the widget */ ParametersWidget.prototype.execute = function() { var self = this; - this.parametersDepth = parseInt(this.getAttribute("$depth","1"),10) || 1; + this.parametersDepth = Math.max(parseInt(this.getAttribute("$depth","1"),10) || 1,1); // Find the parent transclusions var pointer = this.parentWidget, depth = this.parametersDepth;