From 9a26c4259afa6c4de374170643349e9e7d0e0a7f Mon Sep 17 00:00:00 2001 From: Jermolene Date: Tue, 13 May 2014 18:16:45 +0100 Subject: [PATCH] Fix problem with widget.getStateQualifier() Fixed to take into account the recent change to read variables from the parent widget: e60fc9f81f2c8f0d115543d8d330a1d68f9b890a --- core/modules/widgets/widget.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/modules/widgets/widget.js b/core/modules/widgets/widget.js index 8c3ac969f..1069c6025 100755 --- a/core/modules/widgets/widget.js +++ b/core/modules/widgets/widget.js @@ -201,8 +201,8 @@ Widget.prototype.getStateQualifier = function(name) { name = name || "transclusion"; var output = [], node = this; - while(node) { - if($tw.utils.hop(node.variables,name)) { + while(node && node.parentWidget) { + if($tw.utils.hop(node.parentWidget.variables,name)) { output.push(node.getVariable(name)); } node = node.parentWidget;