diff --git a/src/component/allvaluechooser/combo.allvaluechooser.js b/src/component/allvaluechooser/combo.allvaluechooser.js index 8c170867a..ac0f03b11 100644 --- a/src/component/allvaluechooser/combo.allvaluechooser.js +++ b/src/component/allvaluechooser/combo.allvaluechooser.js @@ -52,11 +52,16 @@ BI.AllValueChooserCombo = BI.inherit(BI.AbstractAllValueChooser, { }, getValue: function () { + return this.getAllValue(); + }, + + getAllValue: function () { var val = this.combo.getValue() || {}; - if (val.type === BI.Selection.All) { - return val.assist; + if (val.type === BI.Selection.Multi) { + return val.value || []; } - return val.value || []; + + return BI.difference(BI.map(this.items, "value"), val.value || []); }, populate: function (items) { diff --git a/src/component/treevaluechooser/pane.treevaluechooser.js b/src/component/treevaluechooser/pane.treevaluechooser.js index 39a81d0c4..1d961a517 100644 --- a/src/component/treevaluechooser/pane.treevaluechooser.js +++ b/src/component/treevaluechooser/pane.treevaluechooser.js @@ -46,7 +46,7 @@ BI.TreeValueChooserPane = BI.inherit(BI.AbstractTreeValueChooser, { }, getAllValue: function() { - return this.buildCompleteTree(this.combo.getValue()); + return this.buildCompleteTree(this.pane.getValue()); }, populate: function (items) {