@ -88,5 +88,20 @@ BI.AbstractValueChooser = BI.inherit(BI.Widget, {
hasNext: self._hasNextByTimes(resultItems, options.times)
});
}
},
_assertValue: function (v) {
v = v || {};
var value = v;
if (v.type === BI.Selection.Multi && BI.isNotNull(this.items)) {
var isAllSelect = BI.difference(BI.map(this.items, "value"), v.value).length === 0;
if (isAllSelect) {
value = {
type: BI.Selection.All,
value: [],
};
return value;
@ -65,21 +65,6 @@ BI.ValueChooserInsertCombo = BI.inherit(BI.AbstractValueChooser, {
setValue: function (v) {
this.combo.setValue(this._assertValue(v));
@ -69,21 +69,6 @@ BI.ValueChooserCombo = BI.inherit(BI.AbstractValueChooser, {