From ea8a8f1b53e31148fc699ab25bb189d0054b1e26 Mon Sep 17 00:00:00 2001 From: Tobias Beer Date: Wed, 9 Dec 2015 23:33:07 +0100 Subject: [PATCH] always set emptyValue, not just for filter --- core/modules/widgets/setvariable.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/modules/widgets/setvariable.js b/core/modules/widgets/setvariable.js index a3057356d..f75fa2c98 100755 --- a/core/modules/widgets/setvariable.js +++ b/core/modules/widgets/setvariable.js @@ -61,6 +61,8 @@ SetWidget.prototype.getValue = function() { if(results.length === 0 && this.setEmptyValue !== undefined) { value = this.setEmptyValue; } + } else if(!value && this.setEmptyValue) { + value = this.setEmptyValue; } return value; };