[SSE] Fix Bug 45993

This commit is contained in:
Julia Radzhabova 2020-07-31 13:59:15 +03:00
parent 540b8fd2d7
commit 613d8b6713

View file

@ -1800,9 +1800,11 @@ define([
item.setChecked(checked, true);
if (checked) isCustomConditions = false;
});
else if ((isPivot || !isTextFilter) && (cond1 == Asc.c_oAscCustomAutoFilter.isGreaterThanOrEqualTo && cond2 == Asc.c_oAscCustomAutoFilter.isLessThanOrEqualTo ||
cond1 == Asc.c_oAscCustomAutoFilter.isLessThanOrEqualTo && cond2 == Asc.c_oAscCustomAutoFilter.isGreaterThanOrEqualTo)){
items[6].setChecked(true, true); // between filter
else if ((isPivot || !isTextFilter) && (cond1 == Asc.c_oAscCustomAutoFilter.isGreaterThanOrEqualTo && cond2 == Asc.c_oAscCustomAutoFilter.isLessThanOrEqualTo)){
items[isPivot && !isValueFilter ? 13 : 6].setChecked(true, true); // between filter
isCustomConditions = false;
} else if (isPivot && (cond1 == Asc.c_oAscCustomAutoFilter.isLessThan && cond2 == Asc.c_oAscCustomAutoFilter.isGreaterThan)) {
items[!isValueFilter ? 14 : 7].setChecked(true, true); // not between filter
isCustomConditions = false;
}
if (isCustomConditions)