Merge pull request #448 from ONLYOFFICE/fix/fix-pivot

Fix/fix pivot
This commit is contained in:
Julia Radzhabova 2020-07-31 14:10:39 +03:00 committed by GitHub
commit 957b5373bc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 4 deletions

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)

View file

@ -133,7 +133,7 @@ define([ 'text!spreadsheeteditor/main/app/template/PivotSettingsAdvanced.temp
this.numWrap = new Common.UI.MetricSpinner({
el: $('#pivot-adv-spin-wrap'),
step: 1,
width: 85,
width: 60,
allowDecimal: false,
defaultUnit : "",
value: '0',